Browse code

Merge "Apache reload issue when it is stopped"

Jenkins authored on 2016/11/28 08:25:09
Showing 1 changed files
... ...
@@ -2310,11 +2310,12 @@ function stop_service {
2310 2310
     fi
2311 2311
 }
2312 2312
 
2313
-# Service wrapper to stop services
2313
+# Service wrapper to reload services
2314
+# If the service was not in running state it will start it
2314 2315
 # reload_service service-name
2315 2316
 function reload_service {
2316 2317
     if [ -x /bin/systemctl ]; then
2317
-        sudo /bin/systemctl reload $1
2318
+        sudo /bin/systemctl reload-or-restart $1
2318 2319
     else
2319 2320
         sudo service $1 reload
2320 2321
     fi