]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/dns.cgi
dns.cgi: restart suricata before unbound reload
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / dns.cgi
index 09fd50206d6549e555428020cd7f7061b252217d..676d95f8a6daa199008df6040b3390fe7eb9ffd3 100755 (executable)
@@ -815,9 +815,6 @@ END
 
 # Private function to handle the restart of unbound and more.
 sub _handle_unbound_and_more () {
-       # Restart unbound
-       system('/usr/local/bin/unboundctrl reload >/dev/null');
-
        # Check if the IDS is running.
        if(&IDS::ids_is_running()) {
                # Re-generate the file which contains the DNS Server
@@ -827,6 +824,8 @@ sub _handle_unbound_and_more () {
                # Call suricatactrl to perform a reload.
                &IDS::call_suricatactrl("restart");
        }
+       # Restart unbound
+       system('/usr/local/bin/unboundctrl reload >/dev/null');
 }
 
 # Check if the system is online (RED is connected).