[quagga-users 3279] Re: quagga watchdog script?

Arnold Nipper arnold at nipper.de
Wed Nov 24 23:36:59 GMT 2004


On 24.11.2004 22:45 Andrew J. Schorr wrote


> Before I do it myself: has anybody coded up a quagga watchdog script that
> automatically restarts daemons if they crash or hang?  And if so, would you be
> willing to share it?
> 

Well, something like

#!/bin/sh

SLEEP=${1:-60}

while `ps -C bgpd -o pid=`
do
  sleep $SLEEP
done

/etc/init.d/quagga start

## EOF quagga watchdog


should already do, given you already have a quagga start-stop script.




Arnold


More information about the Quagga-users mailing list