[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