Since 4b49e409f853104dae021dfca1a9342ec9ac4709 devstack
started to use reload instead of restart.
Using reload in devstack for a fresh install,
does not makes too much sense unless multiple service
plugin touches the same service configs.
Systemd rejects to reload something,
which was not loaded before.
$ sudo /bin/systemctl reload httpd
httpd.service is not active, cannot reload.
We will switch to `reload-or-restart` action instead of `reload`,
it is more likely the action what the previous patch wanted.
Change-Id: I70d597fbe4a8923d937ba8432e29edefb27d1058
... | ... |
@@ -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 |