From ae49f96777e7d71c6d303df62d5245813402af53 Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Wed, 1 Apr 2026 12:07:10 +0800 Subject: [PATCH] =?UTF-8?q?startb=EF=BC=9Ajournal=E8=87=AA=E5=B8=A6?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=8C=E4=B8=8D=E9=9C=80=E8=A6=81=E5=9C=A8?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=90=8D=E9=87=8C=E9=87=8D=E7=94=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/startb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/startb b/bin/startb index a74b2de..a553bd8 100755 --- a/bin/startb +++ b/bin/startb @@ -73,10 +73,10 @@ log_to_journal() { # fi if command -v systemd-cat >/dev/null 2>&1; then - nohup setsid systemd-cat -t "$UNIT_NAME" -- "${COMMAND[@]}" >/dev/null 2>&1 & + nohup setsid systemd-cat -t "$UNIT_BASE" -- "${COMMAND[@]}" >/dev/null 2>&1 & local pid=$! disown "$pid" 2>/dev/null || true - echo "$UNIT_NAME started with systemd-cat (pid=$pid), journald logging enabled" + echo "$UNIT_BASE started with systemd-cat (pid=$pid), journald logging enabled" return 0 fi