
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
13 lines
408 B
Django/Jinja
13 lines
408 B
Django/Jinja
[Unit]
|
|
Description=Ironic Prometheus Exporter Flask App
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=on-failure
|
|
ExecStart={{ bifrost_venv_dir }}/bin/gunicorn ironic_prometheus_exporter.app.wsgi:application \
|
|
--bind {{ prometheus_exporter_host }}:{{ prometheus_exporter_port}} \
|
|
--env IRONIC_CONFIG=/etc/ironic/ironic.conf \
|
|
--workers 2 --threads 2 --access-logfile=- --error-logfile=-
|
|
User=ironic
|
|
Group=ironic
|