#!/bin/sh set -eu STATS_CRON_URL="${STATS_CRON_URL:-http://127.0.0.1:5000/api/v1/pool/overview}" # BusyBox cron uses /etc/crontabs/root on Alpine. printf '*/5 * * * * /usr/bin/curl -fsS "%s" >/dev/null 2>&1\n' "$STATS_CRON_URL" > /etc/crontabs/root # Start cron in the background to trigger periodic stats collection. crond -l 8 exec python3 main.py