diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index 62dd8008..bd052c21 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -115,7 +115,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 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}\" -- Mode {$snort_performance} | logger -p daemon.info -i -t SnortStartup", + "start" => "BEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n{$start}\necho \"Sleeping before final memory sampling...\"\nsleep 17\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print $10}'`\necho \"Ram free BEFORE starting Snort: \${BEFORE_MEM} -- Ram free AFTER starting Snort: \${AFTER_MEM}\" -- Mode {$snort_performance} | logger -p daemon.info -i -t SnortStartup", "stop" => "/usr/bin/killall snort; killall snort2c" ) ); |