fix logging to systemd and switch to stderr for warning and fatal

This commit is contained in:
erpalma
2019-01-24 08:52:56 +01:00
parent 7ac672dd7d
commit 56a91aaf6f
2 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ Description=Stop Intel throttling
[Service]
Type=simple
ExecStart=/opt/lenovo_fix/venv/bin/python3 /opt/lenovo_fix/lenovo_fix.py
# Setting PYTHONUNBUFFERED is necessary to see the output of this service in the journal
Environment=PYTHONUNBUFFERED=1
StandardOutput=syslog
StandardError=syslog