Package: and
Version: 1.2.1-2
Severity: serious

Hi,

| simona:~# ps xauf | grep and | grep -v grep
| simona:~# [ -f /var/run/and.pid ] || echo 'does not exist'
| does not exist
| simona:~# /etc/init.d/and start
| Starting auto nice daemon: and.
| simona:~# ps xauf | grep and | grep -v grep
| root     20614  0.0  0.0  2800  732 ?        S    12:46   0:00 /usr/sbin/and
| simona:~# cat /var/run/and.pid
| 20613
| simona:~# start-stop-daemon --stop --pidfile /var/run/and.pid --exec 
/usr/sbin/and
| No /usr/sbin/and found running; none killed.

Since and forks after you start it, and you create the pidfile from
start-stop-daemon the pidfile is wrong.  so stop never kills and.

Please either fix and to
 - to write the pidfile on its own, or
 - not fork (and let start stop daemon detach), or
 - do not check the pidfile when killing and.
 (in order of preference).

Thanks,
Peter


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to