Here is the result of cat -v /etc/crontab
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# rsync by dungog-rsync.(taxmasters)
48 4 * * * root /usr/bin/dungogrsync-rsync120746
# rsync by dungog-rsync.(drmike)
1 18 * * * root /usr/bin/dungogrsync-rsync194693
# rsync by dungog-rsync.(main server)
45 13 * * * root /usr/bin/dungogrsync-rsync422061
# rsync by dungog-rsync.(FirstChoice)
31 20 * * * root /usr/bin/dungogrsync-rsync564449
# rsync by dungog-rsync.(gls)
28 22 * * * root /usr/bin/dungogrsync-rsync582321
^M
# logrotate
12 1 */7 * * root /sbin/e-smith/signal-event logrotate
# DMARC Reporting is disabled
# Backup task is disabled
# Workstation Backup task is disabled
2 4 * * * root sleep $[ $RANDOM \% 3600 ]; /sbin/e-smith/check4contribsupdates -m
2 4 * * * root sleep $[ $RANDOM \% 3600 ]; /sbin/e-smith/check4updates -m
# smeserver-clamscan filesystem scan
# disabled
# squid is disabled
26 9 * * 6 root sleep $[ $RANDOM \% 60 ]; /sbin/e-smith/statusreport
and this is the template that is in /etc/e-smith/templates/etc/crontab
{
use esmith::config;
use esmith::db;
local %dungog;
tie %dungog, 'esmith::config', '/home/e-smith/db/dungog';
$OUT = "\n";
my @all = ();
foreach (keys %dungog)
{
push (@all, $_)
if (db_get_type(\%dungog, $_) eq "rsync");
}
foreach (keys %dungog)
{
push (@all, $_)
if (db_get_type(\%dungog, $_) eq "rsyncAnon");
}
#if a rsync is defined set it up
my $all = @all || '0';
if ($all > 0)
{
my $rsync;
foreach $rsync (sort @all)
{
my $user = db_get_prop(\%dungog, $rsync, "user") || 'root';
my $freq = db_get_prop(\%dungog, $rsync, "freq") || '';
my $day = db_get_prop(\%dungog, $rsync, "day") || 'tue';
my $hour = db_get_prop(\%dungog, $rsync, "hour") || '3';
my $min = db_get_prop(\%dungog, $rsync, "min") || '30';
my $desc = db_get_prop(\%dungog, $rsync, "desc") || '';
my $mail = db_get_prop(\%dungog, $rsync, "mail") || '';
#unless email is on, delete output
unless ($mail eq 'on')
{
$mail = '1>/dev/null 2>/dev/null';
}
else
{
$mail = '';
}
if ($freq eq 'hourly')
{
$OUT .= "# hourly rsync by dungog-rsync.($desc)\n";
$OUT .= "$min * * * * $user /usr/bin/dungogrsync-$rsync $mail\n";
$OUT .= "\n";
}
elsif ($freq eq 'on')
{
$OUT .= "# rsync by dungog-rsync.($desc)\n";
$OUT .= "$min $hour * * $day $user /usr/bin/dungogrsync-$rsync $mail\n";
$OUT .= "\n";
}
}
}
}