From a7a3fb8582418bc700ad5ae988a04e3c39dc5d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 20 Jun 2026 02:21:44 +0200 Subject: [PATCH] fix(stacks): show correct status when backup service has failed Same fix as the update service: gate "not installed" on unit file existence rather than systemctl exit code, which is non-zero for failed services too. Co-Authored-By: Claude Sonnet 4.6 --- stacks.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stacks.sh b/stacks.sh index ddab58e..0d886f4 100755 --- a/stacks.sh +++ b/stacks.sh @@ -664,8 +664,11 @@ EOF ;; status) - systemctl status stacks-backup.timer stacks-backup.service --no-pager 2>/dev/null \ - || warn "Backup service not installed" + if systemctl cat stacks-backup.timer &>/dev/null; then + systemctl status stacks-backup.timer stacks-backup.service --no-pager 2>/dev/null || true + else + warn "Backup service not installed" + fi ;; logs)