From: Nicolas Thill Date: Tue, 8 Nov 2011 23:35:13 +0000 (+0000) Subject: package/base-files: /lib/functions.sh: let service_stop exit early if no matching... X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=95910adf11ce0eb3c5cfae4de02a334ff3126f7b;p=15.05%2Fopenwrt.git package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28870 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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