17 lines
464 B
SYSTEMD
17 lines
464 B
SYSTEMD
[Unit]
|
|
Description=Icinga to Kuma converter.
|
|
Wants=icinga2.service icinga-director.service
|
|
Requires=icinga2.service icinga-director.service
|
|
|
|
[Service]
|
|
User=flask
|
|
Environment="ICINGA2KUMA_ICINGA2_PW=[your icinga2 API password]"
|
|
WorkingDirectory=/opt/icinga2-checks/Other
|
|
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/gunicorn -b 0.0.0.0:8081 -w 4 icinga2kuma:app
|
|
SyslogIdentifier=icinga2kuma
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|