mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
procd: do not overwrite service data by default
Allows a running servie to manage its own data if untouched by the init script Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
3d900bd055
commit
8c5826b140
@ -100,10 +100,6 @@ service_triggers() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
service_data() {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
service_running() {
|
service_running() {
|
||||||
local instance="${1:-*}"
|
local instance="${1:-*}"
|
||||||
|
|
||||||
|
@ -101,9 +101,11 @@ _procd_close_service() {
|
|||||||
_procd_open_trigger
|
_procd_open_trigger
|
||||||
service_triggers
|
service_triggers
|
||||||
_procd_close_trigger
|
_procd_close_trigger
|
||||||
_procd_open_data
|
type service_data >/dev/null 2>&1 && {
|
||||||
service_data
|
_procd_open_data
|
||||||
_procd_close_data
|
service_data
|
||||||
|
_procd_close_data
|
||||||
|
}
|
||||||
_procd_ubus_call ${1:-set}
|
_procd_ubus_call ${1:-set}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user