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 --- vpn/deploy.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vpn') diff --git a/vpn/deploy.sh b/vpn/deploy.sh index 0005d9a..71d5d6e 100644 --- a/vpn/deploy.sh +++ b/vpn/deploy.sh @@ -2,6 +2,12 @@ set -euo pipefail cd "$(dirname "$0")" +# 管理画面で停止中なら起動しない(Start で stopped.txt から外れる) +if grep -qx vpn ../status/stopped.txt 2>/dev/null; then + echo "vpn: 管理画面で停止中のためスキップ" + exit 0 +fi + # 初期化前はスキップ(install.sh を先に実行する必要がある) if [ ! -f users.conf ] || [ ! -f certs/server.crt ]; then echo "VPN: 未初期化のためスキップ (install.sh を実行してください)" -- cgit v1.3