diff options
| -rw-r--r-- | cumulus/etc/frr/debian.conf | 1 | ||||
| -rwxr-xr-x | tools/frr | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/cumulus/etc/frr/debian.conf b/cumulus/etc/frr/debian.conf index eed8379e8c..7b9b20bd5b 100644 --- a/cumulus/etc/frr/debian.conf +++ b/cumulus/etc/frr/debian.conf @@ -4,6 +4,7 @@ # Check /etc/pam.d/frr if you intend to use "vtysh"! # vtysh_enable=yes +valgrind_enable=no zebra_options=" -s 90000000 --daemon -A 127.0.0.1" bgpd_options=" --daemon -A 127.0.0.1" ospfd_options=" --daemon -A 127.0.0.1" @@ -150,12 +150,21 @@ start() return; fi - ${SSD} \ + if [ $valgrind_enable = "yes" ]; then + ${SSD} \ + --start \ + --pidfile=`pidfile $1` \ + --exec "/usr/bin/valgrind" \ + -- --trace-children=no --leak-check=full --log-file=/var/log/frr/$1-valgrind.log $D_PATH/$1 \ + `eval echo "$""$1""_options"` + else + ${SSD} \ --start \ --pidfile=`pidfile $1` \ --exec "$D_PATH/$1" \ -- \ `eval echo "$""$1""_options"` + fi fi } |
