From 9b5e2645744d3cbdcdceb82b7e64e252b1116885 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 17 Jul 2021 19:14:15 +0200 Subject: [PATCH] systemd: fix name in journalctl --- contrib/systemd/copyparty.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/systemd/copyparty.service b/contrib/systemd/copyparty.service index b50920fd..11fc7d55 100644 --- a/contrib/systemd/copyparty.service +++ b/contrib/systemd/copyparty.service @@ -10,8 +10,8 @@ # # with `Type=notify`, copyparty will signal systemd when it is ready to # accept connections; correctly delaying units depending on copyparty. -# But note that journalctl does not show messages in the correct order -# (or with correct timestamps even), so you get confusing stuff like +# But note that journalctl will get the timestamps wrong due to +# python disabling line-buffering, so messages are out-of-order: # https://user-images.githubusercontent.com/241032/126040249-cb535cc7-c599-4931-a796-a5d9af691bad.png [Unit] @@ -19,6 +19,7 @@ Description=copyparty file server [Service] Type=notify +SyslogIdentifier=copyparty ExecStart=/usr/bin/python3 /usr/local/bin/copyparty-sfx.py -q -v /mnt::a ExecStartPre=/bin/bash -c 'mkdir -p /run/tmpfiles.d/ && echo "x /tmp/pe-copyparty*" > /run/tmpfiles.d/copyparty.conf'