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


Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to