Received: (at submit) by bugs.debian.org; 10 Aug 1996 08:48:49 +0000 Received: (qmail-queue invoked from smtpd); 10 Aug 1996 08:30:16 -0000 Received: from r2d2.fdn.org (193.55.4.56) by master.debian.org with SMTP; 10 Aug 1996 08:30:15 -0000 Received: (from uucp@localhost) by r2d2.fdn.org (8.7.1/8.6.9) with UUCP id KAA08621 for submit@bugs.debian.org; Sat, 10 Aug 1996 10:26:53 +0200 (MET DST) Received: (from arrouye@localhost) by marin.fdn.fr (8.7.5/8.7.3) id BAA20676 for submit@bugs.debian.org; Sat, 10 Aug 1996 01:22:51 +0200 Date: Sat, 10 Aug 1996 01:22:51 +0200 From: Yves Arrouye <Yves.Arrouye@marin.fdn.fr> Message-Id: <199608092322.BAA20676@marin.fdn.fr> X-Mailer: Mail User's Shell (7.2.6unoff 7/17/96) To: submit@bugs.debian.org Subject: start-stop-daemon fails to kill process Maybe should it kill the process whose pid is in the pidfile, even if it does not think the executable is running? Here is an example of the problem: marin66# /etc/init.d/apache stop no /usr/sbin/apache found; none killed. marin67# cat /var/run/apache/apache.pid 12707 marin68# ps -ax|grep 12707 12707 ? S 0:00 /usr/sbin/apache 20378 p9 S 0:00 grep 12707 And /etc/init.d/apache is: #! /bin/sh # # apache Start the apache HTTP server. # # PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/apache NAME=apache test -f $DAEMON || exit 0 if [ -d /var/run/apache ] then PIDFILE=/var/run/apache/$NAME.pid else PIDFILE=/var/run/$NAME.pid fi case "$1" in start) start-stop-daemon --start --verbose --pidfile $PIDFILE --exec $DAEMON ;; stop) start-stop-daemon --stop --verbose --pidfile $PIDFILE --exec $DAEMON ;; reload) echo "Reloading $NAME configuration files" start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE \ --exec $DAEMON ;; *) echo "Usage: /etc/init.d/$NAME {start|stop|reload}" exit 1 ;; esac exit 0 --