Files
firepool/docker-entrypoint.sh
nathanwoodburn e455faf543
Build Docker / BuildImage (push) Successful in 1m55s
Check Code Quality / RuffCheck (push) Successful in 1m59s
feat: Add stats
2026-04-08 15:34:26 +10:00

13 lines
354 B
Bash

#!/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