# TODO who should be getting emails from cron
# TODO what emails should cron actually be sending that are useful to people?
MAILTO=brendonj@caida.org

# build /etc/monitors.yaml with other ark probe information
*/15 * * * * ark TMP_YAML=$(mktemp --tmpdir monitors.XXXXXX) && chmod 644 $TMP_YAML && /usr/bin/ark-monitors-yaml $TMP_YAML >/dev/null 2>&1 && mv $TMP_YAML /etc/ark/monitors.yaml || echo "/usr/bin/ark-monitors-yaml failed"

# TODO can we remove the files immediately after they are processed instead?
# delete old team-probing files that should have been processed
40 * * * * ark (cd /staging/team-probing.daily && find . -type f -mtime +21 -delete) >/dev/null 2>&1
