I am creating a service_triggers() in an init.d script, and I wanted to know what is preferred:
- procd_add_reload_trigger .. .. ..
- procd_add_config_trigger "config.change" "$name" /etc/init.d/$name reload
I believe they can both do the same thing. ...and I cannot seem to find documentation on the 2nd, perhaps because it is newer?
I have just finished a Luci package to manage a config file for 'chrony', and the chronyd init.d script has no service_triggers. My updates from Luci to config are working fine. Just no service restart yet.
So, I know what to do, I just need advice on what is best.