[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