aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_for_rule_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-05-13 16:58:53 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-05-13 16:58:53 -0400
commit080fb922c15c959be4f0bd101d0cf3f529f0e866 (patch)
tree85e73c4767a5c70ae6b24f7a7c4b0bb527d78e4d /config/snort/snort_check_for_rule_updates.php
parent7a9c4f49b8fcb9b0d9eedd17046fc3b030c9bb96 (diff)
downloadpfsense-packages-080fb922c15c959be4f0bd101d0cf3f529f0e866.tar.gz
pfsense-packages-080fb922c15c959be4f0bd101d0cf3f529f0e866.tar.bz2
pfsense-packages-080fb922c15c959be4f0bd101d0cf3f529f0e866.zip
Snort Pkg 2.5.8 Update - bug fixes and new features
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index f69c3b98..c1c9ce46 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -36,7 +36,7 @@ require_once("service-utils.inc");
global $snort_gui_include, $vrt_enabled, $et_enabled, $rebuild_rules, $snort_rules_upd_log;
global $protect_preproc_rules, $is_postinstall, $snort_community_rules_filename;
-global $snort_community_rules_url, $snort_rules_file, $emergingthreats_filename;
+global $snort_community_rules_url, $snort_rules_file, $emergingthreats_filename, $g;
$snortdir = SNORTDIR;
$snortlibdir = SNORTLIBDIR;
@@ -558,8 +558,8 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules =
exec("/bin/rm -r {$snortdir}/tmp");
}
- /* Restart snort if already running to pick up the new rules. */
- if (is_process_running("snort")) {
+ /* Restart snort if already running and we are not rebooting to pick up the new rules. */
+ if (is_process_running("snort") && !$g['booting']) {
update_status(gettext('Restarting Snort to activate the new set of rules...'));
error_log(gettext("\tRestarting Snort to activate the new set of rules...\n"), 3, $snort_rules_upd_log);
restart_service("snort");