aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-26 21:16:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-26 21:16:13 +0000
commit8196f330ab77f4db7d88191ab852aa665345e929 (patch)
tree0b888ebcd42c0ad2424e400e16d1342101032f58 /packages
parenteb6a1ddef54020c002e36dcc46724350c8ed5f4c (diff)
downloadpfsense-packages-8196f330ab77f4db7d88191ab852aa665345e929.tar.gz
pfsense-packages-8196f330ab77f4db7d88191ab852aa665345e929.tar.bz2
pfsense-packages-8196f330ab77f4db7d88191ab852aa665345e929.zip
Wait 17 seconds after snort bringup to take after starting memory sampling
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 3c21903f..933f0540 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -109,7 +109,7 @@ function sync_package_snort() {
/* write out rc.d start/stop file */
write_rcfile(array(
"file" => "snort.sh",
- "start" => "BEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n{$start}\nsleep 10\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print $10}'`\necho \"Ram usage BEFORE starting Snort: \${BEFORE_MEM} -- Ram usage AFTER starting Snort: \${AFTER_MEM}\"| logger -p daemon.info -i -t SnortMemory",
+ "start" => "BEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n{$start}\nsleep 17\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print $10}'`\necho \"Ram usage BEFORE starting Snort: \${BEFORE_MEM} -- Ram usage AFTER starting Snort: \${AFTER_MEM}\"| logger -p daemon.info -i -t SnortMemory",
"stop" => "/usr/bin/killall snort; killall snort2c"
)
);