Fixed bug with flushed output to systemd
This commit is contained in:
parent
9dbc9befde
commit
870a47fec6
|
@ -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
|
||||||
```
|
```
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue