> if start-stop-daemon -K --retry=TERM/30/KILL/5 -o -q -p $PIDFILE -x > $DAEMON -u $USER; then Okay, it seems to be working now, but also seemed to be working in general, the problem doesn't occur every time...
> Fwiw, the sleep 1 in restart) looks like on of those dirty hacks to > workaround race conditions. Well that would be quite trivial to fix: it's a bug in start-stop-daemon. That program would just need to wait() on the pid after sending the signal, so the shell scripts would know that in the line after stopping a daemon, the daemon has been stopped and they can launch it again. Should i report the bug? I've just checked the source of that command and there is no trace of wait/waitpid calls. Bye -- Salvo Tomaselli
signature.asc
Description: This is a digitally signed message part.

