From a24dc83e0251ad950c9a1dfc196ddcbd06672f22 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 29 Sep 2006 21:46:59 +0000 Subject: Log when we detect an ip address change so we can verify if this codepath is even being hit. --- packages/snort/snort_dynamic_ip_reload.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packages/snort') diff --git a/packages/snort/snort_dynamic_ip_reload.php b/packages/snort/snort_dynamic_ip_reload.php index 74b643f0..00e96d2e 100644 --- a/packages/snort/snort_dynamic_ip_reload.php +++ b/packages/snort/snort_dynamic_ip_reload.php @@ -3,11 +3,10 @@ require("/usr/local/pkg/snort.inc"); if($config['interfaces']['wan']['ipaddr'] == "pppoe" or $config['interfaces']['wan']['ipaddr'] == "dhcp") { + log_error("Snort has detected an IP address change. Reloading."); stop_service("snort"); create_snort_conf(); - sleep(1); + sleep(3); start_service("snort"); - - } -- cgit v1.2.3