All'incirca Thu, 20 Dec 2007 03:04:46 +0100,  Romain Beauxis
<[EMAIL PROTECTED]> sembrerebbe aver scritto:

>       Hi !
> 
> Could you provide more details why the init script failed ?
> 
> Romain

debian/peercast-servent.init in the source package contains these lines:

  stop)
        echo -n "Stopping $DESC: "
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --chuid 
$USERID:$USERID       \
        --exec $DAEMON
        echo "Stopped."
        ;;

This mean that if peercast-servent isn't running start-stop-daemon will
exit with status 1 (see its man page), which will cause the whole
init.d script to fail (remember that set -e is enabled a few lines
above). But the init.d script is called in prerm (generated by
dh_installinit), so when peercast-servent isn't running the pre-removal
script fails, thus making package removing impossible unless
peercast-servent is running.

This can be avoided, for example, by passing the --oknodo to
start-stop-daemon, or by managing correctly its failures.

Anyway, thank you for your work!
Regards, Giovanni.
-- 
Giovanni Mascellani <[EMAIL PROTECTED]>
Pisa, Italy

Web: http://giomasce.altervista.org
SIP: [EMAIL PROTECTED]
Jabber: [EMAIL PROTECTED] / [EMAIL PROTECTED]
GPG: 0x5F1FBF70 (FP: 1EB6 3D43 E201 4DDF 67BD  003F FCB0 BB5C 5F1F BF70)

Attachment: signature.asc
Description: PGP signature

Reply via email to