diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-18 21:13:23 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-09-18 21:13:23 -0400 |
commit | b3690f7345eb7f2dc0b5832972f9793eeb63c5c5 (patch) | |
tree | 2409a0683c94ade9ba18fa81a355ddc3ed0f6bec /config/snort/snort.inc | |
parent | ce738579b75249da4758f63628206a859ca44e4f (diff) | |
download | pfsense-packages-b3690f7345eb7f2dc0b5832972f9793eeb63c5c5.tar.gz pfsense-packages-b3690f7345eb7f2dc0b5832972f9793eeb63c5c5.tar.bz2 pfsense-packages-b3690f7345eb7f2dc0b5832972f9793eeb63c5c5.zip |
Add new shell script for starting Snort package.
Diffstat (limited to 'config/snort/snort.inc')
-rwxr-xr-x | config/snort/snort.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index c4f01e1d..ca527b31 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -2996,10 +2996,16 @@ function snort_deinstall() { log_error(gettext("[Snort] Snort package uninstall in progress...")); + /* Remove our rc.d startup shell script */ + unlink_if_exists("{$rcdir}snort_pkg.sh"); + /* Make sure all active Snort processes are terminated */ /* Log a message only if a running process is detected */ - if (is_service_running("snort")) + if (is_process_running("snort")) { log_error(gettext("[Snort] Snort STOP for all interfaces...")); + snort_stop_all_interfaces(); + } + sleep(2); mwexec('/usr/bin/killall -z snort', true); sleep(2); mwexec('/usr/bin/killall -9 snort', true); @@ -3009,7 +3015,7 @@ function snort_deinstall() { /* Make sure all active Barnyard2 processes are terminated */ /* Log a message only if a running process is detected */ - if (is_service_running("barnyard2")) + if (is_process_running("barnyard2")) log_error(gettext("[Snort] Barnyard2 STOP for all interfaces...")); mwexec('/usr/bin/killall -z barnyard2', true); sleep(2); |