In killproc(), make sure to exit 0 when the program is not running and when no signal...
authorDidier Raboud <odyx@debian.org>
Thu, 12 Apr 2012 12:13:35 +0000 (14:13 +0200)
committerDidier Raboud <odyx@debian.org>
Wed, 18 Apr 2012 07:58:39 +0000 (09:58 +0200)
Closes: #668416
Reported-by: Peter Eisentraut <petere@debian.org>
Signed-off-by: Didier Raboud <odyx@debian.org>
init-functions

index 13cf6d6a324340bbbde70719bb00d8c39a71462a..8265984033e73bf2306e0de5cb0ffa57cf568643 100644 (file)
@@ -160,7 +160,7 @@ killproc () {
            --oknodo $name_param || status="$?"
     fi
     if [ "$status" = 1 ]; then
-        if [ -n "$sig" ]; then
+        if [ -z "$sig" ]; then
             return 0
         fi
         return 3 # program is not running