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-Tag: v19.07.0-rc1~26249 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=62a2827ea72f027775b25c25168bba3f26b45039;p=openwrt%2Fstaging%2Fhauke.git package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found SVN-Revision: 28870 --- 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