summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-07 23:57:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-07 23:57:40 +0000
commit2523de5310681cbb1c1037fad0757dcd72300dde (patch)
tree830aa4e2a43871687992572ed3e6e80b11e76b61 /etc/inc
parentcf9fc1cc45ba0bdef3a48595b66f3ba26ec170a5 (diff)
downloadpfsense-2523de5310681cbb1c1037fad0757dcd72300dde.zip
pfsense-2523de5310681cbb1c1037fad0757dcd72300dde.tar.gz
Make sure service is stopped before starting
Ticket #590
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/service-utils.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc
index 0f3e8c4..2153e09 100644
--- a/etc/inc/service-utils.inc
+++ b/etc/inc/service-utils.inc
@@ -61,6 +61,8 @@ function write_rcfile($params) {
function start_service($name) {
global $config;
+ /* make sure service is stopped before starting */
+ stop_service($name);
if($config['installedpackages']['service']) {
foreach($config['installedpackages']['service'] as $service) {
if(strtolower($service['name']) == strtolower($name)) {
OpenPOWER on IntegriCloud