On 2017-01-09 16:29, Baptiste Jonglez wrote:
> Hi,
> 
> I am using the "procd_set_param file" feature of procd, so that calling
> "/etc/init.d/myscript reload" only restarts the process if one of the
> config file has changed.
> 
> I was wondering if I can do the same thing on a directory?  Basically, my
> daemon can now take configuration from all files in a given directory,
> "/tmp/babeld.d/*.conf".  So, I would like to pass "/tmp/babeld.d" like this:
> 
>     procd_set_param file "/tmp/babeld.d/"
> 
> In this case, will procd look for changes in any files in this directory?
> Will it also detect file creation/deletion?
It does not support passing a directory. You should do:
procd_set_param file /tmp/babeld.d/*.conf (without quotes)

- Felix


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to