From 89fed0a8a4281b7b1613b149b7e9734bde93acf0 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Thu, 9 Oct 2014 19:20:46 -0400 Subject: Execute start script in background only in console mode. --- config/snort/snort_post_install.php | 7 ++++--- 1 file 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"); } } -- cgit v1.2.3