Merge "Fix reloads for uWSGI"
This commit is contained in:
commit
7f57d8110b
@ -15,7 +15,7 @@ ExecStart={{ item.program_override }} {{ item.program_config_options | default('
|
||||
{% else %}
|
||||
ExecStart={{ nova_bin }}/{{ item.service_name }} {{ item.program_config_options | default('') }} {{ item.log_string | default('--log-file=') }}/var/log/nova/{{ item.service_name }}.log
|
||||
{% endif %}
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecReload={{ (item.wsgi_app is defined and item.wsgi_app) | ternary(nova_bin + '/uwsgi --reload /var/run/' + item.service_name + '/' + item.service_name +'.pid','/bin/kill -HUP $MAINPID') }}
|
||||
|
||||
# Give a reasonable amount of time for the server to start up/shut down
|
||||
TimeoutSec=120
|
||||
|
@ -11,10 +11,11 @@ master = true
|
||||
enable-threads = true
|
||||
processes = {{ nova_wsgi_processes }}
|
||||
threads = {{ nova_wsgi_threads }}
|
||||
exit-on-reload = true
|
||||
exit-on-reload = false
|
||||
die-on-term = true
|
||||
lazy-apps = true
|
||||
add-header = Connection: close
|
||||
buffer-size = {{ nova_wsgi_buffer_size }}
|
||||
thunder-lock = true
|
||||
logfile-chmod = 644
|
||||
pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid
|
||||
|
Loading…
x
Reference in New Issue
Block a user