olsrd: automatically restart if config has changed
Restart olsrd automatically if generated config has been changed.
This commit is contained in:
parent
3ab33c8752
commit
39b6b3e477
2 changed files with 2 additions and 2 deletions
|
@ -6,12 +6,12 @@
|
|||
START=65
|
||||
USE_PROCD=1
|
||||
CONF=/var/etc/olsrd.conf
|
||||
UCI_CONF_NAME=olsrd
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/olsrd -f $CONF -nofork
|
||||
procd_set_param respawn
|
||||
procd_set_param file $CONF # automatically restart olsrd if cfg has changed
|
||||
procd_close_instance
|
||||
|
||||
olsrd_setup_smartgw_rules
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
START=65
|
||||
USE_PROCD=1
|
||||
CONF=/var/etc/olsrd6.conf
|
||||
UCI_CONF_NAME=olsrd6
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/olsrd -f $CONF -nofork
|
||||
procd_set_param respawn
|
||||
procd_set_param file $CONF # automatically restart olsrd6 if cfg has changed
|
||||
procd_close_instance
|
||||
|
||||
olsrd_setup_smartgw_rules
|
||||
|
|
Loading…
Reference in a new issue