#!/bin/sh
#
# Regular cron.hourly job for the doloforge package: platform maintenance, then project runs, in that order.
# Some project script rely on cluster-wide maintenance data, ex. news_report.pl depends on bulkmail.
# The doloforge command itself will output administrative information, forwarded via email to the administrator.
# The project cron jobs output will be sent by doloforge to each project email.
#
for stage in $(doloforge --quiet --directory ~doloforge config --list); do
    nice doloforge --quiet --stage $stage --directory ~doloforge cron --maintenance --interval hourly cron --run --interval hourly &
done
