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 --- git/hooks/microblog/post-receive | 2 ++ git/hooks/todo/post-receive | 2 ++ git/hooks/tokyo-livehouse-events/post-receive | 2 ++ git/hooks/whois-band/post-receive | 2 ++ 4 files changed, 8 insertions(+) (limited to 'git') diff --git a/git/hooks/microblog/post-receive b/git/hooks/microblog/post-receive index 2627861..87d51cc 100755 --- a/git/hooks/microblog/post-receive +++ b/git/hooks/microblog/post-receive @@ -4,5 +4,7 @@ APP_DIR=/app/microblog GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR mkdir -p data +# push でデプロイしたら管理画面の停止状態を解除する +sed -i '/^blog$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build echo "Deploy complete: microblog" diff --git a/git/hooks/todo/post-receive b/git/hooks/todo/post-receive index 645b856..0952ee5 100644 --- a/git/hooks/todo/post-receive +++ b/git/hooks/todo/post-receive @@ -4,5 +4,7 @@ APP_DIR=/app/todo GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR mkdir -p data +# push でデプロイしたら管理画面の停止状態を解除する +sed -i '/^todo$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build echo "Deploy complete: todo" diff --git a/git/hooks/tokyo-livehouse-events/post-receive b/git/hooks/tokyo-livehouse-events/post-receive index ca64767..6a80e28 100755 --- a/git/hooks/tokyo-livehouse-events/post-receive +++ b/git/hooks/tokyo-livehouse-events/post-receive @@ -4,5 +4,7 @@ APP_DIR=/app/tokyo-livehouse-events GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR mkdir -p data +# push でデプロイしたら管理画面の停止状態を解除する +sed -i '/^golive$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build echo "Deploy complete: tokyo-livehouse-events" diff --git a/git/hooks/whois-band/post-receive b/git/hooks/whois-band/post-receive index 60b368f..de4d7c7 100755 --- a/git/hooks/whois-band/post-receive +++ b/git/hooks/whois-band/post-receive @@ -4,5 +4,7 @@ APP_DIR=/app/whois-band GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR mkdir -p data +# push でデプロイしたら管理画面の停止状態を解除する +sed -i '/^whoisband$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build echo "Deploy complete: whois-band" -- cgit v1.3