Snapshot: full project state
This commit is contained in:
17
liveness.sh
Normal file
17
liveness.sh
Normal 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"
|
||||
Reference in New Issue
Block a user