moving on, curious about something on the procd wiki page:
http://wiki.openwrt.org/inbox/procd-init-scripts
when you define a sevice trigger with something like:
service_triggers() {
procd_add_reload_trigger "uci-file-name"
}
under exactly what circumstances will the trigger be notified that
that config file has changed? the text right after suggests you need
to run "reload_config", but is that implied if you change the config
file, then run a "uci commit"? will that also invoke the service
trigger?
also, the example below that shows defining a trigger based on more
than one config file:
procd_add_reload_trigger "uci-file-name" "second-uci-file"
can i assume that should mean that you can register an *arbitrary*
number of config files for the same trigger? (that line awkwardly
suggests that you can specify a second file, but no more than that.)
finally, that same example is used "If you want/need your service to
depend on changes to networking":
procd_add_network_trigger "lan"|"etho0" FIXME - this is still a work in
process....
should that read "procd_add_interface_trigger" instead? i see no
"procd_add_network_trigger" anywhere.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users