package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found
SVN-Revision: 28870
This commit is contained in:
parent
f67f9ef941
commit
62a2827ea7
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ service_start() {
|
||||||
|
|
||||||
service_stop() {
|
service_stop() {
|
||||||
local try
|
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
|
while [ $((try++)) -lt $SERVICE_STOP_TIME ]; do
|
||||||
service -C "$@" || return 0
|
service -C "$@" || return 0
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
Loading…
Reference in a new issue