Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Snort isn't detecting processes in pid file correctly - See forum htt…

  • Loading branch information...
commit 0b80caf55cd12e5016b2353738a8d614add9142f 1 parent afcc559
Brett Ussher authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/snort/snort.inc
2  config/snort/snort.inc
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.