
This way systemd will wait for services to start and can report failures directly to Ansible (or an operator). Notifications are provided by oslo.service or gunicorn. Depends-On: https://review.opendev.org/c/openstack/ironic/+/826470 Change-Id: I6970c2f844075f6ccd15a4656f12bd063aebda6c
12 lines
396 B
Django/Jinja
12 lines
396 B
Django/Jinja
[Unit]
|
|
Description=Sushy Redfish Emulator
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=on-failure
|
|
ExecStart={{ bifrost_venv_dir }}/bin/gunicorn sushy_tools.emulator.main:app \
|
|
--bind {{ redfish_emulator_host }}:{{ redfish_emulator_port }} \
|
|
--env SUSHY_EMULATOR_CONFIG=/etc/redfish-emulator.conf \
|
|
--env FLASK_DEBUG=1 --workers 2 --threads 2 --timeout 90 \
|
|
--access-logfile=- --error-logfile=-
|