stubby: restart on trigger interfaces
authorAleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
Mon, 23 May 2022 17:06:37 +0000 (20:06 +0300)
committerRosen Penev <rosenp@gmail.com>
Thu, 26 May 2022 00:35:38 +0000 (17:35 -0700)
Force restart stubby if any of the trigger interfaces goes up or down.
Avoids DoT DNS lookup timeouts when default route changes, in case of multiple
upstream interfaces.

Signed-off-by: Aleksandr V. Piskunov <aleksandr.v.piskunov@gmail.com>
net/stubby/files/stubby.init

index 5d0574aedb6bffc88dff1ded3023876fb8d2774c..57429050020284f5caffa6d5005cd4351dbec0e6 100755 (executable)
@@ -270,7 +270,7 @@ service_triggers()
 
     for trigger_item in $trigger
     do
-        procd_add_interface_trigger "interface.*.up" "$trigger_item" "$stubby_init" start
+        procd_add_interface_trigger "interface.*" "$trigger_item" "$stubby_init" restart
     done
 
     procd_add_reload_trigger "stubby"