Another change is to wait for the daemon to stop before trying to start it again when using 'restart':
do_stop() { start-stop-daemon --stop --retry 30 --quiet --oknodo --user sphinxsearch --pidfile $PIDFILE \ --exec $DAEMON } In my case 30 seconds was too low, but that seems like a reasonable default. References to DODTIME should be removed if this change is adopted. Also, this removes the need to have a force-stop target. The --retry option will cause this sequence: TERM/wait up to 30 seconds/KILL/wait up to 30 seconds which is what the force-stop target does currently, except it waits only 1 second. -- Leandro -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org