Changeset 28870


Ignore:
Timestamp:
2011-11-09T00:35:13+01:00 (6 years ago)
Author:
nico
Message:

package/base-files: /lib/functions.sh: let service_stop exit early if no matching process to stop where found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/functions.sh

    r28865 r28870  
    352352service_stop() { 
    353353        local try 
    354         SERVICE_SIG="${SERVICE_SIG:-$SERVICE_SIG_STOP}" service -K "$@" 
     354        SERVICE_SIG="${SERVICE_SIG:-$SERVICE_SIG_STOP}" service -K "$@" || return 1 
    355355        while [ $((try++)) -lt $SERVICE_STOP_TIME ]; do 
    356356                service -C "$@" || return 0 
Note: See TracChangeset for help on using the changeset viewer.