OPNsense-NetFlow-export/systemdConfig/netflowCollector.example.service

28 lines
685 B
SYSTEMD
Raw Permalink Normal View History

2025-05-08 09:49:17 +02:00
[Unit]
Description=Netflow to InfluxDB script
After=multi-user.target network.target network-online.target
# Place in /etc/systemd/system/
2025-05-08 09:49:17 +02:00
[Service]
User=yuru
Group=yuru
2025-05-08 09:49:17 +02:00
Type=simple
Restart=on-failure
# EnvironmentFile=/etc/NetFlux/netflow.env
# User=myuser
WorkingDirectory=/etc/NetFlux/HQ/
ExecStart=/etc/NetFlux/HQ/venv/bin/python3 /etc/NetFlux/HQ/HQnetflow.py --serve-in-foreground
#StandardInput=tty-force
2025-05-08 09:49:17 +02:00
# Log file will be create if it doesn't exist
StandardOutput=append:/var/log/HQNetFlowInflux.log
StandardError=append:/var/log/HQNetFlowInflux.errlog
# StandardOutput=syslog
# StandardError=syslog
# SyslogIdentifier=NetFlowInflux
[Install]
WantedBy=multi-user.target