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