olsrd: only regenerate the config on reload
A reload kills the olsrd daemon. However, the option AllowNoInt allows to dynamically add and remove interfaces without a restart. Stop restarting the complete daemon. A restart destroys all the metrics and will harm the smoothness of the mesh network. Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
817240b07c
commit
9eda521657
2 changed files with 12 additions and 0 deletions
|
@ -36,6 +36,12 @@ boot()
|
|||
rc_procd start_service
|
||||
}
|
||||
|
||||
reload_service()
|
||||
{
|
||||
olsrd_generate_config $OLSRD
|
||||
killall -s SIGHUP $OLSRD
|
||||
}
|
||||
|
||||
start_service() {
|
||||
olsrd_generate_config $OLSRD
|
||||
|
||||
|
|
|
@ -28,6 +28,12 @@ wait_for_wireless()
|
|||
done
|
||||
}
|
||||
|
||||
reload_service()
|
||||
{
|
||||
olsrd_generate_config $OLSRD
|
||||
killall -s SIGHUP $OLSRD
|
||||
}
|
||||
|
||||
boot()
|
||||
{
|
||||
config_load network
|
||||
|
|
Loading…
Reference in a new issue