From 3eb744e4913bdbc2b2e0e41b9aed902d259a847c Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Thu, 25 Apr 2019 19:49:22 +0200 Subject: [PATCH] fff-firewall: Restart when network configuration changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The configuration of our firewall depends on the network configuration. Most importantly, the firewall has to be restarted, if the WAN-interface is changed. Therefore, a procd reload trigger is added to the init-script, so our firewall is automatically restarted, when the network configuration is changed. Fixes: #46 (gitea) Signed-off-by: Robert Langhammer [fabian@blaese.de: Remove unrelated changes] Signed-off-by: Fabian Bläse Reviewed-by: Robert Langhammer Reviewed-by: Adrian Schmutzler --- src/packages/fff/fff-firewall/files/etc/init.d/fff-firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-firewall/files/etc/init.d/fff-firewall b/src/packages/fff/fff-firewall/files/etc/init.d/fff-firewall index d460222c..22fa1932 100755 --- a/src/packages/fff/fff-firewall/files/etc/init.d/fff-firewall +++ b/src/packages/fff/fff-firewall/files/etc/init.d/fff-firewall @@ -11,7 +11,7 @@ FIREWALL_DIR=/usr/lib/firewall.d service_triggers() { - procd_add_reload_trigger "fff-firewall" + procd_add_reload_trigger "fff-firewall" "network" } start_service()