bundlewrap/bundles/icinga2/files/icinga_statusmonitor.service

16 lines
288 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Icinga2 Statusmonitor
After=network.target
[Service]
User=nagios
Group=nagios
Environment="FLASK_APP=/etc/icinga2/icinga_statusmonitor.py"
ExecStart=/usr/bin/python3 -m flask run
WorkingDirectory=/tmp
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target