From df646c67601e4be05bde4d7af46bc28aa841d475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Fri, 2 Nov 2012 11:55:18 +0100 Subject: Always restart snort after a rules update. --- config/snort/snort_check_for_rule_updates.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'config') diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 689b3174..d4f990a4 100644 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -395,12 +395,10 @@ if ($snortdownload == 'on' || $emergingthreats == 'on') { } } - if (is_process_running("snort")) { - exec("/bin/sh /usr/local/etc/rc.d/snort.sh restart"); - update_output_window(gettext("Snort has restarted with your new set of rules...")); - log_error("Snort has restarted with your new set of rules..."); - } else - log_error("Snort Rules update finished..."); + exec("/bin/sh /usr/local/etc/rc.d/snort.sh restart"); + update_output_window(gettext("Snort has restarted with your new set of rules...")); + log_error("Snort has restarted with your new set of rules..."); + } update_status(gettext("The Rules update finished...")); -- cgit v1.2.3