deploy: retry the relay health probe after restart (raced python startup)
This commit is contained in:
@@ -231,8 +231,17 @@ install_signal_relay() {
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable signal-relay.service
|
||||
systemctl --user restart signal-relay.service
|
||||
curl -fsS -m 5 http://127.0.0.1:18093/health >/dev/null \
|
||||
|| { echo "signal-relay is not answering on 127.0.0.1:18093" >&2; return 1; }
|
||||
# The interpreter needs a moment to bind after restart; a one-shot curl
|
||||
# raced the socket on 2026-09-17 and failed a healthy deploy.
|
||||
local i
|
||||
for i in $(seq 1 15); do
|
||||
if curl -fsS -m 5 http://127.0.0.1:18093/health >/dev/null; then
|
||||
return 0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "signal-relay is not answering on 127.0.0.1:18093" >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
copy_loki_config() {
|
||||
|
||||
Reference in New Issue
Block a user