From 05e1418efa56a773c295a2e072796e220d8d8f51 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 31 Oct 2026 22:45:58 +0900 Subject: hetzner-admin: stop/start individual services, shown as STOPPED on status page - run-command.sh: services / stop / start for app and infra stacks (not caddy, hetzner-admin, status). Stopped names go to status/stopped.txt (gitignored). - status: a stopped service that does not respond is STOPPED (gray), excluded from uptime and DOWN alerts. If it responds it is UP as usual. - Infra deploy.sh skips stopped stacks; app repo pushes clear the flag. - claude-code@.service: Restart=on-failure, and restart-sessions.sh restarts one unit at a time, to avoid the tmux "server exited unexpectedly" race. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01N5eS3U54gzjRXzm65Np1RS --- claude/restart-sessions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'claude/restart-sessions.sh') diff --git a/claude/restart-sessions.sh b/claude/restart-sessions.sh index 5f0e1b4..3e1c495 100644 --- a/claude/restart-sessions.sh +++ b/claude/restart-sessions.sh @@ -3,4 +3,4 @@ set -e uid=$(id -u yyamashita) runuser -u yyamashita -- \ env XDG_RUNTIME_DIR=/run/user/$uid DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus \ - bash -c 'systemctl --user list-units --plain --no-legend "claude-code@*.service" | awk "{print \$1}" | xargs -r systemctl --user restart' + bash -c 'systemctl --user list-units --plain --no-legend "claude-code@*.service" | awk "{print \$1}" | xargs -r -n1 systemctl --user restart' -- cgit v1.3