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

Dirk Brenken dibdot at gmail.com
Tue Nov 29 21:11:07 PST 2016


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?

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       
  	[...]
}

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

Thanks in advance!
Dirk





More information about the Lede-dev mailing list