User Tools

Site Tools


docs:guide-developer:procd-init-scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
docs:guide-developer:procd-init-scripts [2018/03/16 22:59]
jeff [How to write a procd init script?]
docs:guide-developer:procd-init-scripts [2018/06/13 14:18] (current)
aparcar1 add procd_add_interface_trigger
Line 81: Line 81:
 { {
         procd_add_reload_trigger "​uci-file-name"​ "​second-uci-file"​         procd_add_reload_trigger "​uci-file-name"​ "​second-uci-file"​
-        ​procd_add_network_trigger ​"lan"|"​etho0"​ FIXME - this is still a work in process....+        ​procd_add_interface_trigger ​"interface.*" ​<​interface>​ /etc/init.d/<​service>​ reload
 } }
 </​code>​ </​code>​
-igmpproxy is (currently) the only service that makes use of this, but (hopefully) by the time you read this, dnsmasq will also have been updated, at least.+See use cases of [[https://​github.com/​openwrt/​packages/​search?​q=procd_add_interface_trigger|procd_add_interface_trigger]] and [[https://​github.com/​openwrt/​packages/​search?​q=procd_add_reload_trigger|procd_add_reload_trigger]] in the OpenWrt packages repository.
  
 === Signalling a service === === Signalling a service ===
docs/guide-developer/procd-init-scripts.txt · Last modified: 2018/06/13 14:18 by aparcar1