gluon-respondd: Use hotplug script for reload

Before, we used a procd netdev trigger, but that fired *way* too often (maybe
once per router announcement received?), causing high load for nothing.

This basically reverts to the behaviour before commit d8bb978, only that the
init script still handles argument collection.
This commit is contained in:
Jan-Philipp Litza 2017-03-07 16:10:57 +01:00
parent 9a33b4ce79
commit 6ca06adb33
2 changed files with 5 additions and 9 deletions

View File

@ -0,0 +1,5 @@
#!/bin/sh
[ "$ACTION" = "ifupdate" ] && exit
exec /etc/init.d/gluon-respondd reload

View File

@ -18,12 +18,3 @@ start_service() {
procd_set_param stderr 1 procd_set_param stderr 1
procd_close_instance procd_close_instance
} }
service_triggers() {
local script=$(readlink "$initscript")
local name=$(basename ${script:-$initscript})
procd_open_trigger
procd_add_raw_trigger "interface.*" 0 "/etc/init.d/$name" reload
procd_close_trigger
}