--- smeserver-moodle-1.0/root/etc/e-smith/templates/etc/crontab/30moodle.cronstatus 2008-10-10 10:28:00.000000000 +1100 +++ smeserver-moodle-1.0/root/etc/e-smith/templates/etc/crontab/30moodle 2008-10-10 10:30:56.000000000 +1100 @@ -3,6 +3,10 @@ return "# moodle is disabled \n" unless $status eq 'enabled'; + my $cron = $moodle{'cron'} || "enabled"; + return "# moodle cron job is disabled \n" + unless $cron eq 'enabled'; + $OUT = ""; $OUT .= "# moodle called each 5 minutes\n"; $OUT .= "*/5 * * * * root /usr/bin/php /opt/moodle/html/admin/cron.php >/dev/null\n";