systemd: line-buffered logging

This commit is contained in:
ed 2021-07-30 10:39:46 +02:00
parent 35dce1e3e4
commit 79bbd8fe38

View file

@ -13,6 +13,10 @@
# But note that journalctl will get the timestamps wrong due to # But note that journalctl will get the timestamps wrong due to
# python disabling line-buffering, so messages are out-of-order: # python disabling line-buffering, so messages are out-of-order:
# https://user-images.githubusercontent.com/241032/126040249-cb535cc7-c599-4931-a796-a5d9af691bad.png # https://user-images.githubusercontent.com/241032/126040249-cb535cc7-c599-4931-a796-a5d9af691bad.png
#
# enable line-buffering for realtime logging (slight performance cost):
# modify ExecStart and prefix it with `/bin/stdbuf -oL` like so:
# ExecStart=/bin/stdbuf -oL /usr/bin/python3 [...]
[Unit] [Unit]
Description=copyparty file server Description=copyparty file server