From aeebce1b0eebb77da872f1814d5c45584ab3dd1c Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Tue, 5 Oct 2010 22:18:39 -0600 Subject: Use mwexec_bg instead of exec to run a service's start command so PHP doesn't hang in the likely event that it spawns a background process. --- etc/inc/service-utils.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/service-utils.inc') diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index 925ff4f..4b2a84a 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -87,7 +87,7 @@ function start_service($name) { sleep(2); if(file_exists("{$rcfileprefix}{$name}.sh")) { - exec("/bin/sh {$rcfileprefix}{$name}.sh start"); + mwexec_bg("/bin/sh {$rcfileprefix}{$name}.sh start"); return; } if($config['installedpackages']['service']) { -- cgit v1.1