From f198345e8376f52b0fe7122732bcf4909e008174 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Thu, 12 Apr 2012 14:13:35 +0200 Subject: [PATCH] In killproc(), make sure to exit 0 when the program is not running and when no signal was specified. Closes: #668416 Reported-by: Peter Eisentraut Signed-off-by: Didier Raboud --- init-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-functions b/init-functions index 13cf6d6..8265984 100644 --- a/init-functions +++ b/init-functions @@ -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 -- 2.30.2