diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 01:47:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-27 01:47:26 +0000 |
commit | 9735ab546e754b1a7320ec79710f61028ca2a342 (patch) | |
tree | 77d39d2f857f3c424c722057264f619f76c68114 | |
parent | f1463dd981c2d3d91e5205181f0ca56c94628a0d (diff) | |
download | pfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.tar.gz pfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.tar.bz2 pfsense-packages-9735ab546e754b1a7320ec79710f61028ca2a342.zip |
Sleep 2 seconds between restarting snort
-rw-r--r-- | packages/snort/snort_download_rules.php | 1 | ||||
-rw-r--r-- | packages/snort/snort_rulesets.php | 1 |
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."; } |