Merge "Use Type=notify in systemd units for services"

This commit is contained in:
Zuul 2022-02-15 15:19:11 +00:00 committed by Gerrit Code Review
commit 04ba5da52a
3 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Description=Sushy Redfish Emulator Description=Sushy Redfish Emulator
[Service] [Service]
Type=simple Type=notify
Restart=on-failure Restart=on-failure
ExecStart={{ bifrost_venv_dir }}/bin/gunicorn sushy_tools.emulator.main:app \ ExecStart={{ bifrost_venv_dir }}/bin/gunicorn sushy_tools.emulator.main:app \
--bind {{ redfish_emulator_host }}:{{ redfish_emulator_port }} \ --bind {{ redfish_emulator_host }}:{{ redfish_emulator_port }} \

View File

@ -2,7 +2,7 @@
Description=Ironic Prometheus Exporter Flask App Description=Ironic Prometheus Exporter Flask App
[Service] [Service]
Type=simple Type=notify
Restart=on-failure Restart=on-failure
ExecStart={{ bifrost_venv_dir }}/bin/gunicorn ironic_prometheus_exporter.app.wsgi:application \ ExecStart={{ bifrost_venv_dir }}/bin/gunicorn ironic_prometheus_exporter.app.wsgi:application \
--bind {{ prometheus_exporter_host }}:{{ prometheus_exporter_port}} \ --bind {{ prometheus_exporter_host }}:{{ prometheus_exporter_port}} \

View File

@ -2,6 +2,7 @@
Description={{ service_name }} service Description={{ service_name }} service
[Service] [Service]
Type=notify
ExecStart={{ service_path }}/{{ service_name }} --config-file {{ config_file }} ExecStart={{ service_path }}/{{ service_name }} --config-file {{ config_file }}
User=ironic User=ironic