[LEDE-DEV] procd init script questions ...

John Crispin john at phrozen.org
Tue Nov 29 22:25:01 PST 2016



On 30/11/2016 06:11, Dirk Brenken wrote:
> Hi list,
> 
> after studying a few mostly incomplete/outdated online docs and
> examples on github (lede main source & package repo) procd is still a
> kind of "terra incognita" ... at least for me. I don't like to copy &
> paste things that I do not understand therefore a few (dump/initial)
> procd questions:
> 
> 1. If I have a script that doesn't daemonize (does not run as a
> 'service'), do I still need the whole 'procd_open_instance' stuff or is
> a simple script start sufficient?

as you prefer

> 
> 2. What's the expected behavior of 'service_triggers' in this case?
> I.e. the firewall init script (fw3 does not run as a daemon) defines
> things like that:
> 
> service_triggers() {
> 	procd_add_reload_trigger firewall       
>   	[...]
> }
> 

reload service when firewall config changes

> 3. Is it possible to replace normal hotplug-script functionality with
> 'service_triggers', i.e for iface/ifup events?

yes

	John



More information about the Lede-dev mailing list