jerrod-lankford / GarageQTPi

An MQTT server for a raspberry pi garage door opener. Most commonly used as a HomeAssistant cover component.
MIT License
75 stars 36 forks source link

Systemd service file should start python with -u parameter #21

Closed reibuehl closed 6 years ago

reibuehl commented 6 years ago

By default, python seems to buffer output which leads to systemd/journald not receiving the results of the prints to STDOUT in a timely manner. If the service file provided would start the script with python in unbuffered mode ExecStart=/usr/bin/python -u /home/pi/GarageQTPi/main.py the logging to journald would come immediately and not in larger junks sometime or never.

jerrod-lankford commented 6 years ago

Want to create a pr?

reibuehl commented 6 years ago

I was already doing it but then I thought I should also fix the pin numbering in the example (done) and on the wiring diagram but then I somehow got lost finding the original and its license... :-) I was tempted to just change the numbers in the picture but don't want to violate anybody's copyright. Maybe I recreate it and add it as a new file in the PR if you don't mind?

jerrod-lankford commented 6 years ago

Sure sounds great