Snapshot: full project state

This commit is contained in:
2026-10-06 23:43:36 -07:00
commit 13c667d118
9 changed files with 162 additions and 0 deletions

17
liveness.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# PapierAgent LAN health-check entry point (local only). Talks to LAN hosts by name/IP via tunnel-free localhost.
set -uo pipefail
OUT=/tmp/health_pa_$$.$(date +%s)
log(){ printf '[%s] %s\n' "$(date -Is)" "$*" >"$OUT"; }
log "=== PapierAgent LAN service probe ==="
# Probe the installed on-device services we built this cycle. Adjust URLs to match LAN IPs/port names as set at provision time.
for tgt in \
"http://paperagent-service/healthy"
do
http=$(curl -s -o /dev/null -w '%{http_code}' --connect-timeout 4 --max-time 6 "$tgt" 2>/dev/null || echo 000)
log "PAPERAGENT_SERVICE TARGET=${tgt} HTTP=$http"
done
log "DONE"