On Thu, Apr 05, 2001 at 03:48:34PM +0200, David Rohleder wrote:
if [ -S /var/bird.ctl ] ; then echo already running fi
does the same thing.
And off course many daemons are using start-stop-daemon
Just by staring at it i saw a couple of ugly things - Must have been very early when i actually did it. The above would only imply that the pipe exists but not actually tell you if bird is running. "birdc" exits with an error code > 0 if bird is not reachable which i try to detect. The problem with the start-stop-daemon is that it needs a pid file which when i remember correctly is not written by bird. One solution would have been to make a patch to bird (Which i had done if i remember) but i dropped it because of lazyness. Flo -- Florian Lohoff flo@rfc822.org +49-5201-669912 Why is it called "common sense" when nobody seems to have any?