From 62a2827ea72f027775b25c25168bba3f26b45039 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Tue, 8 Nov 2011 23:35:13 +0000 Subject: [PATCH] package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found SVN-Revision: 28870 --- package/base-files/files/lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 389f8eb98d..43ce60ee15 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -351,7 +351,7 @@ service_start() { service_stop() { local try - SERVICE_SIG="${SERVICE_SIG:-$SERVICE_SIG_STOP}" service -K "$@" + SERVICE_SIG="${SERVICE_SIG:-$SERVICE_SIG_STOP}" service -K "$@" || return 1 while [ $((try++)) -lt $SERVICE_STOP_TIME ]; do service -C "$@" || return 0 sleep 1 -- 2.30.2