From: Didier Raboud Date: Thu, 12 Apr 2012 12:13:35 +0000 (+0200) Subject: In killproc(), make sure to exit 0 when the program is not running and when no signal... X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~152 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f198345e8376f52b0fe7122732bcf4909e008174;p=lsb.git 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 --- 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