package: use service_running instead of service_started for ubus config
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run

Fixes issue with loading config after a service crash. Should also improve
startup time.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-03-13 10:11:56 +01:00
parent 3b65496654
commit 9a79cdc7ee
5 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ service_triggers() {
procd_add_reload_trigger udebug
}
service_started() {
service_running() {
ubus -t 10 wait_for udebug
[ $? = 0 ] && reload_service
}

View File

@ -165,7 +165,7 @@ start_service() {
procd_close_instance
}
service_started() {
service_running() {
ubus -t 10 wait_for qosify
[ $? = 0 ] && reload_service
}

View File

@ -43,7 +43,7 @@ start_service() {
procd_close_instance
}
service_started() {
service_running() {
ubus -t 10 wait_for bridger
[ $? = 0 ] && reload_service
}

View File

@ -157,7 +157,7 @@ start_service() {
echo 128 > /proc/sys/net/ipv4/igmp_max_memberships
}
service_started() {
service_running() {
procd_set_config_changed firewall
}

View File

@ -66,7 +66,7 @@ start_service() {
procd_close_instance
}
service_started() {
service_running() {
ubus -t 10 wait_for umdns
[ $? = 0 ] && reload_service
}