Skip to content

Commit

Permalink
Snort isn't detecting processes in pid file correctly - See forum htt…
Browse files Browse the repository at this point in the history
  • Loading branch information
uversy committed Jul 2, 2012
1 parent afcc559 commit 0b80caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/snort/snort.inc
Expand Up @@ -891,7 +891,7 @@ EOE;

$start_snort_iface_stop[] = <<<EOF
if [ "`/bin/pgrep -nF {$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid`" = "0" ]; then
if [ "`/bin/pgrep -nF {$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid`" != "0" ]; then
/usr/bin/logger -p daemon.info -i -t SnortStartup "Snort HARD STOP For {$snort_uuid}_{$if_real}..."
/bin/pkill -F {$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid -a
Expand Down

0 comments on commit 0b80caf

Please sign in to comment.