diff options
author | Nicolas Thill <nico@openwrt.org> | 2011-11-08 23:35:13 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2011-11-08 23:35:13 +0000 |
commit | 62a2827ea72f027775b25c25168bba3f26b45039 (patch) | |
tree | 409992bd9780a2fcd5de67ed23963f98400c87d3 /package/base-files | |
parent | f67f9ef9411bc89fd084dd6aadf45afe3cb713d5 (diff) | |
download | mtk-20170518-62a2827ea72f027775b25c25168bba3f26b45039.zip mtk-20170518-62a2827ea72f027775b25c25168bba3f26b45039.tar.gz mtk-20170518-62a2827ea72f027775b25c25168bba3f26b45039.tar.bz2 |
package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found
SVN-Revision: 28870
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 389f8eb..43ce60e 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 |