mirror of
https://github.com/Lienol/openwrt
synced 2025-01-07 03:06:49 +08:00
procd: disable lock
This commit is contained in:
parent
b83fb0a510
commit
1a6231f0ed
@ -145,7 +145,7 @@ extra_command "enabled" "Check if service is started on boot"
|
||||
}
|
||||
|
||||
stop() {
|
||||
procd_lock
|
||||
#procd_lock
|
||||
stop_service "$@"
|
||||
procd_kill "$(basename ${basescript:-$initscript})" "$1"
|
||||
if eval "type service_stopped" 2>/dev/null >/dev/null; then
|
||||
@ -155,7 +155,7 @@ extra_command "enabled" "Check if service is started on boot"
|
||||
|
||||
reload() {
|
||||
if eval "type reload_service" 2>/dev/null >/dev/null; then
|
||||
procd_lock
|
||||
#procd_lock
|
||||
reload_service "$@"
|
||||
else
|
||||
start
|
||||
|
@ -68,7 +68,7 @@ _procd_call() {
|
||||
}
|
||||
|
||||
_procd_wrapper() {
|
||||
procd_lock
|
||||
#procd_lock
|
||||
while [ -n "$1" ]; do
|
||||
eval "$1() { _procd_call _$1 \"\$@\"; }"
|
||||
shift
|
||||
|
Loading…
Reference in New Issue
Block a user