From dfec6df2fb876fadb20d24a5bd8f4b4400a0f659 Mon Sep 17 00:00:00 2001 From: batsumaru <> Date: Wed, 1 Jul 2026 15:38:51 +0900 Subject: Split monolithic status check.sh into modular check scripts Replace the single-file prototype with independently-addable check scripts (checks/*.sh) that each emit JSONL rows, a shared helper lib, and one orchestrator/renderer (render.sh) that groups rows by section and writes the static status page. A broken check script now shows up as a down/warn row instead of crashing the whole render. Co-Authored-By: Claude Sonnet 5 --- statuspage/checks/jail-www.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 statuspage/checks/jail-www.sh (limited to 'statuspage/checks/jail-www.sh') diff --git a/statuspage/checks/jail-www.sh b/statuspage/checks/jail-www.sh new file mode 100644 index 0000000..7b6274e --- /dev/null +++ b/statuspage/checks/jail-www.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# checks/jail-www.sh +# www VNET jail: jail-up check, then nginx-inside-jail http check. +set -eu + +DIR=$(dirname "$0") +. "$DIR/../lib/common.sh" + +JAIL_STATUS=$(jail_status www) +json_line "jails" "www jail" "" "$JAIL_STATUS" + +HTTP_STATUS=$(port_check 192.168.100.20 80) +json_line "jails" " -> http :80" "" "$HTTP_STATUS" -- cgit v1.3