aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 19:20:46 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 19:20:46 -0400
commit89fed0a8a4281b7b1613b149b7e9734bde93acf0 (patch)
treeb44d8d6a55bd4dfb8f1ccd933b694ee5fbb475d2 /config/snort
parent5f9c567daf5f1ab98001b6a200f553ccf2364180 (diff)
downloadpfsense-packages-89fed0a8a4281b7b1613b149b7e9734bde93acf0.tar.gz
pfsense-packages-89fed0a8a4281b7b1613b149b7e9734bde93acf0.tar.bz2
pfsense-packages-89fed0a8a4281b7b1613b149b7e9734bde93acf0.zip
Execute start script in background only in console mode.
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_post_install.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/snort/snort_post_install.php b/config/snort/snort_post_install.php
index 13191a44..c295b881 100644
--- a/config/snort/snort_post_install.php
+++ b/config/snort/snort_post_install.php
@@ -246,10 +246,11 @@ if ($config['installedpackages']['snortglobal']['forcekeepsettings'] == 'on') {
if ($pkg_interface <> "console") {
update_status(gettext("Starting Snort using rebuilt configuration..."));
update_output_window(gettext("Please wait while Snort is started..."));
- }
- mwexec_bg("{$rcdir}snort.sh start");
- if ($pkg_interface <> "console")
+ mwexec("{$rcdir}snort.sh start");
update_output_window(gettext("Snort has been started using the rebuilt configuration..."));
+ }
+ else
+ mwexec_bg("{$rcdir}snort.sh start");
}
}