From 2a9a6aebd988174eeef0b39c9995471aa9c09124 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 3 Aug 2021 09:22:16 +0200 Subject: [PATCH] systemd fun --- contrib/systemd/copyparty.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/systemd/copyparty.service b/contrib/systemd/copyparty.service index 0e48436a..bbbc4bf9 100644 --- a/contrib/systemd/copyparty.service +++ b/contrib/systemd/copyparty.service @@ -15,8 +15,11 @@ # 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 [...] +# modify ExecStart and prefix it with `/usr/bin/stdbuf -oL` like so: +# ExecStart=/usr/bin/stdbuf -oL /usr/bin/python3 [...] +# but some systemd versions require this instead (higher performance cost): +# inside the [Service] block, add the following line: +# Environment=PYTHONUNBUFFERED=x [Unit] Description=copyparty file server