Mercurial > routeflapper
diff test.bash @ 0:48d06780cf77
initial version
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 13 May 2008 14:03:10 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.bash Tue May 13 14:03:10 2008 -0700 @@ -0,0 +1,30 @@ +#!/bin/bash + +#rebuild +make + +# shutdown bgpd +/sbin/service bgpd stop + +# start the route flap detector +pid=/var/run/routeflapper.pid +mkdir -p /var/run/routeflapper +chmod 700 /var/run/routeflapper +#chown routeflapper:routeflapper /var/run/routeflapper + +cd $(hostname) + +#valgrind --leak-check=full --show-reachable=yes ../src/routeflapper -d 10 +#valgrind --leak-check=full ../src/routeflapper -d 3 +../src/routeflapper -d 3 +rm -f tracelog* +#strace -e trace=open,close,read,write -o tracelog -f -ff -x src/routeflapper -d 10 +sleep 5 +P2=`cat $pid` +echo started routeflapper as process $P2 + +# restart bgpd +/sbin/service bgpd start + +echo "eventually, run the following kill command" +echo kill -SIGINT $P2