# Uptime probes — every minute.
#
# Once a minute is right even for a monitor set to check hourly: the worker
# skips anything that is not due, so this line never has to change when a
# monitor's interval does.
#
# ⚠️ flock -n: a stalled endpoint can make one run outlast the minute between
# runs. Without the lock the probes pile up until the box is running dozens of
# curls at once — the monitoring becoming the outage.
* * * * * www-data /usr/bin/flock -n /run/lock/alpha-uptime.lock /usr/bin/nice -n 10 /usr/bin/ionice -c3 /usr/bin/php /var/www/alpha/bin/uptime-run.php >/dev/null 2>&1
