How makes uci commit work to reload service?

Hi All,

I'm trying to create a service/daemon, which read uci config as default setting.
I would like to reload service when /etc/config/videod was changed.
I add following code into my init script.

+ reload_service() {
+     ubus call videod reload
+ }
+ service_triggers() {
+     procd_add_reload_trigger "videod"
+ }

I reboot system and do "uci set videod.xxxx.yyyy=zzz" and "uci commit videod".
But nothing happen. Which part I'm wrong? Please help. Thanks.

First, you don't need to reboot your system to take changes to init.d into account. Just restart that service.

Then, I think you're just missing the reload command after the commit.


see here:
and here:


Hi VincentR,

Thanks. After apply reload_config, anything works good. Thanks.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.