aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-11 21:06:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-11 21:06:00 +0000
commit2343c25935c618f6cabc26901542fd8b4ed2caaf (patch)
treeed3617e3a9d85de3a93e5c107ee4545813d3c4b5 /packages
parent1c216eda16dc6eb190770c8a1259a5aa700791c9 (diff)
downloadpfsense-packages-2343c25935c618f6cabc26901542fd8b4ed2caaf.tar.gz
pfsense-packages-2343c25935c618f6cabc26901542fd8b4ed2caaf.tar.bz2
pfsense-packages-2343c25935c618f6cabc26901542fd8b4ed2caaf.zip
Stop snort on deinstall.
Diffstat (limited to 'packages')
-rw-r--r--packages/snort/snort.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 4ac446ff..1b49b87b 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -164,6 +164,9 @@ function snort_deinstall() {
remove_text_from_file("/etc/sysctl.conf", "sysctl net.bpf.bufsize=20480");
/* decrease bpf buffers back to 4096, from 20480 */
exec("/sbin/sysctl net.bpf.bufsize=4096");
+ exec("/usr/bin/killall snort");
+ sleep(5);
+ exec("/usr/bin/killall -9 snort");
}
function generate_snort_conf() {