icinga2-checks/services/opnsense-watcher-daemon.ser...

16 lines
382 B
SYSTEMD

[Unit]
Description=OPNsense watcher daemon
After=network.target
[Service]
User=flask
Environment="OPN_URL=https://10.0.0.1"
Environment="OPN_KEY=[your OPNsense key]"
Environment="OPN_SECRET=[your OPNsense secret]"
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/python3 /opt/icinga2-checks/opnsense_traffic_watcher.py --daemon
Restart=always
[Install]
WantedBy=multi-user.target