diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-07 23:57:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-07 23:57:40 +0000 |
commit | 2523de5310681cbb1c1037fad0757dcd72300dde (patch) | |
tree | 830aa4e2a43871687992572ed3e6e80b11e76b61 /etc/inc/service-utils.inc | |
parent | cf9fc1cc45ba0bdef3a48595b66f3ba26ec170a5 (diff) | |
download | pfsense-2523de5310681cbb1c1037fad0757dcd72300dde.zip pfsense-2523de5310681cbb1c1037fad0757dcd72300dde.tar.gz |
Make sure service is stopped before starting
Ticket #590
Diffstat (limited to 'etc/inc/service-utils.inc')
-rw-r--r-- | etc/inc/service-utils.inc | 2 |
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)) { |