pgrep is in procps, which is an essential package. killall is in
psmisc, which isn't.
Signed-off-by: David Lamparter <equinox@diac24.net>
service frr restart
# check that it actually started
-killall -0 watchfrr
-killall -0 zebra
-killall -0 bgpd
+pgrep watchfrr
+pgrep zebra
+pgrep bgpd
# just for debugging
vtysh -c 'show modules'
service frr restart
# these should be running by default
-killall -0 watchfrr
-killall -0 zebra
-killall -0 staticd
+pgrep watchfrr
+pgrep zebra
+pgrep staticd
# configure interactively, save to file
vtysh -c 'configure terminal' -c 'ip route 198.51.100.0/28 127.0.0.1'
service frr status >/dev/null || service frr restart
# these should be running by default
-killall -0 watchfrr
-killall -0 zebra
-killall -0 staticd
+pgrep watchfrr
+pgrep zebra
+pgrep staticd
# check vtysh works at all
vtysh -c 'show version'