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

16 lines
395 B
SYSTEMD
Raw Normal View History

2023-11-19 16:38:20 -07:00
[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/venvs/icinga2/icinga2_checks/opnsense_traffic_watcher.py --daemon
Restart=always
[Install]
WantedBy=multi-user.target