Systemd python service buffers journalctl output even with -u
Solution 1:
Through your experiment with unbuffer
, you have established that the buffering is happening in the command you are running, not in systemd
.
So the buffering is happening in the python
code you are wrote. To solve that, you need to review the code you wrote or post the code here with a question.