Package: preload
Version: 0.2-6
Severity: serious

When preload is not running anymore, then running /etc/init.d/preload
stop again fails, returning with a non-zero exit code.

There's more than one thing wrong here:

| galaxy:~# /etc/init.d/preload stop
| Stopping preload: preload.
| galaxy:~# /etc/init.d/preload stop
| Stopping preload: galaxy:~#

First, that's just ugly.

Secondly, this means that removing/upgrading the package will break, as
you try to stop in prerm:

| galaxy:~# dpkg --purge preload
| (Reading database ... 224414 files and directories currently installed.)
| Removing preload ...
| Stopping preload: invoke-rc.d: initscript preload, action "stop" failed.
| dpkg: error processing preload (--purge):
|  subprocess pre-removal script returned error exit status 1
| Starting preload: preload.
| Errors were encountered while processing:
|  preload


Saying something like 'FAILED (not running)' when it's not running, and
then exiting with 0 would probably work.

(The script exists because it runs with set -e and you call
start-stop-daemon without --oknodo, which will make it exit with a
non-zero status when it can't stop anything, thereby exiting the
script).

Peter


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

Reply via email to