summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/service-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-23 07:37:27 -0200
committerRenato Botelho <renato@netgate.com>2015-11-23 07:37:27 -0200
commit7d0e01e1d4216689193d5185e1eb438b39b753e6 (patch)
tree02c3c202628f64fd84805da9ca9a152bd3daa3db /src/etc/inc/service-utils.inc
parentefef9c1b76bd99cecc4a7e41a50aa795750bf298 (diff)
parent6855f25d8f83338559a174bb56cb85075c1d7bc6 (diff)
downloadpfsense-7d0e01e1d4216689193d5185e1eb438b39b753e6.zip
pfsense-7d0e01e1d4216689193d5185e1eb438b39b753e6.tar.gz
Merge pull request #2100 from doktornotor/patch-2
Diffstat (limited to 'src/etc/inc/service-utils.inc')
-rw-r--r--src/etc/inc/service-utils.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etc/inc/service-utils.inc b/src/etc/inc/service-utils.inc
index 8ccd4a9..ba89053 100644
--- a/src/etc/inc/service-utils.inc
+++ b/src/etc/inc/service-utils.inc
@@ -155,7 +155,9 @@ function restart_service($name) {
return;
}
- stop_service($name);
+ if (is_service_running($name)) {
+ stop_service($name);
+ }
start_service($name);
if (is_array($config['installedpackages']) && is_array($config['installedpackages']['service'])) {
OpenPOWER on IntegriCloud