[LEDE-DEV] procd & custom reload support
Matthias Schiffer
mschiffer at universe-factory.net
Fri Jan 13 05:06:56 PST 2017
On 01/13/2017 12:20 PM, Jo-Philipp Wich wrote:
> Hi Rafał,
>
>> What I'd like to achieve is procd monitoring /etc/foo.conf and calling
>> my custom reload function if there is a real need to reload service.
>>
>> Is that possible with procd?
>
> Yes. This facility was recently introduced with
>
> https://git.lede-project.org/?p=project/procd.git;a=commitdiff;h=f800ecf860addd4fc7f1acde76a9adbd4b1f50e7
>
> and
>
> https://git.lede-project.org/?p=source.git;a=commitdiff;h=b22a20af450b19fb47235e684afcddb301221def
>
> To enable it, add "procd_set_param reload_signal 10" to your init script.
>
> ~ Jo
Btw., does this support symbolic signal names? Many signal numbers
(including SIGUSR1) are arch-dependent (in particular, differ on MIPS) (see
`man 7 signal`).
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170113/6d219964/attachment.sig>
More information about the Lede-dev
mailing list