icinga2-checks/services/opnsense-watcher.service

17 lines
413 B
SYSTEMD

[Unit]
Description=OPNsense watcher server
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]"
WorkingDirectory=/opt/icinga2-checks
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/gunicorn -b 0.0.0.0:8082 -w 4 opnsense_traffic_watcher:app
Restart=always
[Install]
WantedBy=multi-user.target