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:
parent
9a33b4ce79
commit
6ca06adb33
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "$ACTION" = "ifupdate" ] && exit
|
||||
|
||||
exec /etc/init.d/gluon-respondd reload
|
@ -18,12 +18,3 @@ start_service() {
|
||||
procd_set_param stderr 1
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user