summaryrefslogtreecommitdiffstats
path: root/etc/inc/service-utils.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-09-30 01:47:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-09-30 01:47:42 +0000
commit34f7437fc8c89c816c319d3d76a233916349301c (patch)
treea3c397e9af10dbadfde27dd5acd025d34f98538b /etc/inc/service-utils.inc
parent4685e46446f44300cddeff1438e78933729af6a8 (diff)
downloadpfsense-34f7437fc8c89c816c319d3d76a233916349301c.zip
pfsense-34f7437fc8c89c816c319d3d76a233916349301c.tar.gz
Correctly start services from /usr/local/etc/rc.d/ first before any other method
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r--etc/inc/service-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index ff8c03d..bb26205 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -63,9 +63,9 @@ function start_service($name) {
global $config;
/* make sure service is stopped before starting */
stop_service($name);
- sleep(1);
+ sleep(2);
if(file_exists("/usr/local/etc/rc.d/{$name}.sh")) {
- exec("/usr/local/etc/rc.d/{$name}.sh start");
+ exec("/bin/sh /usr/local/etc/rc.d/{$name}.sh start");
return;
}
if($config['installedpackages']['service']) {
OpenPOWER on IntegriCloud