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:
Jesse Pretorius 2017-06-13 11:32:42 +01:00 committed by Jesse Pretorius (odyssey4me)
parent b98100fe0c
commit 72b3fdcc8e
1 changed files with 3 additions and 0 deletions

View File

@ -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