[LEDE-DEV] [procd] Using "procd_set_param file" on a directory

Felix Fietkau nbd at nbd.name
Mon Jan 9 07:36:25 PST 2017

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

More information about the Lede-dev mailing list