From 9735ab546e754b1a7320ec79710f61028ca2a342 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 27 Sep 2006 01:47:26 +0000 Subject: Sleep 2 seconds between restarting snort --- packages/snort/snort_download_rules.php | 1 + packages/snort/snort_rulesets.php | 1 + 2 files changed, 2 insertions(+) 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."; } -- cgit v1.2.3