Fixed bug with flushed output to systemd

This commit is contained in:
Domen Tabernik 2019-03-08 21:19:08 +01:00
parent 9dbc9befde
commit 870a47fec6
2 changed files with 6 additions and 2 deletions

View File

@ -35,4 +35,7 @@ sudo systemctl stop superfans-gpu-controller
# check the status # check the status
sudo systemctl status superfans-gpu-controller sudo systemctl status superfans-gpu-controller
# view logs (with trailing)
sudo journalctl -f -u superfans-gpu-controller
``` ```

View File

@ -10,7 +10,8 @@ Type=simple
User=root User=root
Group=root Group=root
WorkingDirectory=`pwd` WorkingDirectory=`pwd`
ExecStart=/usr/bin/python `pwd`/superfans_gpu_controller.py Environment=PYTHONUNBUFFERED=true
ExecStart=/usr/bin/python -u `pwd`/superfans_gpu_controller.py
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog