aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-02 18:18:38 +0000
committerErmal <eri@pfsense.org>2012-07-02 18:18:38 +0000
commitd8d8fbe52aebea02f9acd6bf50d9cd74534dd877 (patch)
treefc6cf1ddd94a10c8218f28008343e905ec73a569
parent08821ab8669733b4f52d1af12ed76a4013488aa9 (diff)
downloadpfsense-packages-d8d8fbe52aebea02f9acd6bf50d9cd74534dd877.tar.gz
pfsense-packages-d8d8fbe52aebea02f9acd6bf50d9cd74534dd877.tar.bz2
pfsense-packages-d8d8fbe52aebea02f9acd6bf50d9cd74534dd877.zip
Correct stopping of snort by specifying right filename of pid.
-rw-r--r--config/snort/snort.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 18700560..49df1adb 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -260,7 +260,7 @@ function Running_Stop($snort_uuid, $if_real, $id) {
global $config, $g;
if (isvalidpid("{$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid")) {
- killbypid("{$g['varrun_path']}/snort_{$if_real}{$snort_uuid}");
+ killbypid("{$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid");
exec("/bin/rm {$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid");
}
@@ -898,10 +898,10 @@ if [ "`/bin/pgrep -nF {$g['varrun_path']}/snort_{$if_real}{$snort_uuid}.pid`" !=
sleep 1
if [ -f {$g['varrun_path']}/barnyard2_{$if_real}{$snort_uuid}.pid ]; then
/bin/pkill -F {$g['varrun_path']}/barnyard2_{$if_real}{$snort_uuid}.pid -a
- /bin/rm /var/run/barnyard2_{$snort_uuid}_{$if_real}.pid
+ /bin/rm /var/run/barnyard2_{$if_real}{$snort_uuid}.pid
fi
- /bin/rm /var/run/snort_{$snort_uuid}_{$if_real}.pid
+ /bin/rm /var/run/snort_{$if_real}{$snort_uuid}.pid
fi
EOF;