change stop action in init-script, otherwise we get a 'Terminated' with exit code...
authorgregor herrmann <gregoa@debian.org>
Thu, 15 Jan 2009 22:15:44 +0000 (22:15 -0000)
committergregor herrmann <gregoa@debian.org>
Thu, 15 Jan 2009 22:15:44 +0000 (22:15 -0000)
debian/iodine.iodined.init

index 35fec0878bce35042118d8053593ac045808acfe..e61618d3476e3ab6af703b412f8a1b48a24c4bac 100644 (file)
@@ -83,7 +83,7 @@ do_stop()
        #   1 if daemon was already stopped
        #   2 if daemon could not be stopped
        #   other if a failure occurred
-       start-stop-daemon --stop --quiet --retry=TERM/5/KILL/5 --name $NAME
+       start-stop-daemon --stop --quiet --retry=TERM/5/KILL/5 --exec $DAEMON
        RETVAL="$?"
        [ "$RETVAL" = 2 ] && return 2
        # Wait for children to finish too if this is a daemon that forks