[OpenWrt-Devel] [PATCH] base-files: procd initscripts restarton reload

John Crispin blogic at openwrt.org
Mon Sep 15 04:15:45 EDT 2014



On 14/09/2014 21:09, Tristan Plumb wrote:
>> On 14/09/2014 17:37, Baptiste Jonglez wrote:
>>> On Sun, Sep 14, 2014 at 08:14:11AM -0400, Tristan Plumb wrote:
>>>> Currently procd enabled initscripts will restart on reload
>>>> when the command line changes, which works for many packages,
>>>> but not anything that keeps its configuration in a file, like
>>>> dnsmasq.
>>> 
>>> Wouldn't it be better to check whether the generated config
>>> file changed, and restart the daemon only if this is the case?
>>> 
> 
>> a procd managed service can add a list of uci packages, netdev,
>> files, ... that if changed will trigger  a restart.
> 
> Could you expand on this some? How does a service request this?
> 
> 'procd_add_reload_trigger' looks like it's for /etc/config/foo,
> but changes to those files do not appear to result in either reload
> or restart.
> 
> 'procd_set_param file foo' doesn't appear to do anything either.
> 

should work, what does ubus call service list '{"verbose": true}'   say ?


>> which specific package is causing issue ?
> 
> In my setup, I've noticed this with dnsmasq and babeld. That is,
> that I needed to restart and instead of reload to get things to
> take effect. Everything else I run is configured by command line
> arguments.

what do you want to do ? track a file and if changed trigger a reload ?
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list