]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
dnsforward.cgi: Reloading unbound is enough to apply changes
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 20:13:03 +0000 (21:13 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 20:13:03 +0000 (21:13 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dnsforward.cgi

index 626b664fda11ae2ec598f68510bfdb4b581bcf6b..ed373c09a453d8098527904d8d059f6fecff3147 100644 (file)
@@ -124,7 +124,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'add'})
                }
        }
        # Restart unbound
-       system('/usr/local/bin/unboundctrl restart >/dev/null');
+       system('/usr/local/bin/unboundctrl reload >/dev/null');
 }
 
 ###
@@ -142,7 +142,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'remove'})
        }
        close(FILE);
        # Restart unbound.
-       system('/usr/local/bin/unboundctrl restart >/dev/null');
+       system('/usr/local/bin/unboundctrl reload >/dev/null');
 }
 
 ###
@@ -169,7 +169,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'toggle enable disable'})
        }
        close(FILE);
        # Restart unbound.
-       system('/usr/local/bin/unboundctrl restart >/dev/null');
+       system('/usr/local/bin/unboundctrl reload >/dev/null');
 }
 
 ###