aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-11-09 18:19:22 +0000
committerErmal <eri@pfsense.org>2011-11-09 18:19:22 +0000
commitcecd19f0a2843d104465b792018c005d113b5ed5 (patch)
tree1d6beef92439ee99d68fbfad0b088cdf8756a6c7
parent565678deb87f2b3681d18ebb2c06f7531f31508b (diff)
downloadpfsense-packages-cecd19f0a2843d104465b792018c005d113b5ed5.tar.gz
pfsense-packages-cecd19f0a2843d104465b792018c005d113b5ed5.tar.bz2
pfsense-packages-cecd19f0a2843d104465b792018c005d113b5ed5.zip
Add a little pause after reload so we are sure the reload process creates the new snort process and passes latest checks in code. This according to: http://forum.pfsense.org/index.php/topic,41533.msg221183.html#msg221183
-rw-r--r--config/snort/snort.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 3eaaabaa..33e6cb97 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -1334,6 +1334,9 @@ rc_start() {
/bin/rm /tmp/snort.sh.pid
+ # XXX: Do not remove this since snort apparenty needs some time to startup!
+ sleep 10
+
#### If on Fake start snort is NOT running DO a real start.
if [ "`/bin/ps -auwx | grep -v grep | grep "R {$snort_uuid}" | awk '{print $2;}'`" = "" ]; then