icinga2-checks/services/opnsense-watcher.service

17 lines
452 B
SYSTEMD
Raw Permalink Normal View History

2023-11-19 16:38:20 -07:00
[Unit]
Description=OPNsense watcher server
After=network.target
[Service]
User=flask
2023-11-19 17:19:26 -07:00
Environment="OPN_URL=https://10.0.0.1"
Environment="OPN_KEY=[your OPNsense key]"
Environment="OPN_SECRET=[your OPNsense secret]"
2023-11-19 16:38:20 -07:00
WorkingDirectory=/opt/icinga2-checks
ExecStart=/opt/venvs/icinga2/icinga2_checks/bin/gunicorn -b 0.0.0.0:8082 -w 4 opnsense_traffic_watcher:app
2024-02-25 20:52:48 -07:00
SyslogIdentifier=onsense-watcher-server
2023-11-19 16:38:20 -07:00
Restart=always
[Install]
WantedBy=multi-user.target