Add reload support to init file
All services except the API service support the use of SIGHUP to reload config files without shutting down network sockets (and perhaps other things). This patch adds support for reloading the services instead of just restarting it to assist with improving rolling upgrades. Change-Id: Id95cae40f736ea2c84200955fccdb44ea3bc1dd8
This commit is contained in:
parent
b98100fe0c
commit
72b3fdcc8e
|
@ -15,6 +15,9 @@ ExecStart={{ program_override }} {{ program_config_options|default('') }} --log-
|
|||
{% else %}
|
||||
ExecStart={{ cinder_bin }}/{{ item.service_name }} {{ program_config_options|default('') }} --log-file=/var/log/cinder/{{ item.service_name }}.log
|
||||
{% endif %}
|
||||
{% if item.service_name != "cinder-api" %}
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
{% endif %}
|
||||
|
||||
# Give a reasonable amount of time for the server to start up/shut down
|
||||
TimeoutSec=120
|
||||
|
|
Loading…
Reference in New Issue