aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-27 01:47:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-27 01:47:26 +0000
commit9735ab546e754b1a7320ec79710f61028ca2a342 (patch)
tree77d39d2f857f3c424c722057264f619f76c68114 /packages
parentf1463dd981c2d3d91e5205181f0ca56c94628a0d (diff)
downloadpfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.tar.gz
pfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.tar.bz2
pfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.zip
Sleep 2 seconds between restarting snort
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort_download_rules.php1
-rw-r--r--packages/snort/snort_rulesets.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/snort/snort_download_rules.php b/packages/snort/snort_download_rules.php
index 12de67a2..bca57b7e 100644
--- a/packages/snort/snort_download_rules.php
+++ b/packages/snort/snort_download_rules.php
@@ -182,6 +182,7 @@ $config['installedpackages']['snort']['last_ruleset_download'] = date("Y-m-d");
write_config();
stop_service("snort");
+sleep(2);
start_service("snort");
/* cleanup temporary directory */
diff --git a/packages/snort/snort_rulesets.php b/packages/snort/snort_rulesets.php
index ccfc3585..5ca19c7d 100644
--- a/packages/snort/snort_rulesets.php
+++ b/packages/snort/snort_rulesets.php
@@ -44,6 +44,7 @@ if($_POST) {
write_config();
stop_service("snort");
create_snort_conf();
+ sleep(2);
start_service("snort");
$savemsg = "The snort ruleset selections have been saved.";
}