Add systemd service for collector

This commit is contained in:
2024-06-30 17:24:15 +02:00
parent 770b122ece
commit 57bd4f0cf0

View File

@ -0,0 +1,11 @@
[Unit]
Description=Routerstats collector service
[Service]
ExecStart=/usr/bin/env python3 /usr/local/bin/routerstats_collector.py /var/log/ulog/syslogemu.log /var/cache/routerstats/passwd.client
#So STDOUT and STDERR are not buffered
Environment=PYTHONUNBUFFERED=1
Restart=on-failure
[Install]
WantedBy=default.target