#!/bin/sh set -eu mkdir -p /opt/canary for attempt in $(seq 1 1800); do if [ -f /opt/canary/ready ]; then exec sh /opt/canary/serve.sh; fi sleep 1 done echo 'canary initialization deadline exceeded' >&2 exit 1