
# delayed tasks START.

# Quota
@daily root umask 027; {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-dsk-quota.log

# Traffic
0,30	*	*	*	*  root umask 027; {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log
0,30	*	*	*	*  root umask 027; {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log

# customer logs
@daily root umask 027; {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log

# Backup for all the customers' data depending of the domain properties
@daily root umask 027; {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log

# Backup for ispCP database and all /etc/ispcp/* configuration files
@daily root umask 027; {BACKUP_ROOT_DIR}/ispcp-backup-ispcp noreport &>{LOG_DIR}/ispcp-backup-ispcp-mngr.log

# Remove config backups older than seven days
@daily root find {CONF_DIR}/*/backup/* -maxdepth 0 -type f -mtime +7 -print | egrep '.*\.[0-9]+$' | xargs -r /bin/rm

# Remove Daemon Logs older than 14 days (except .gz files)
@daily root find {LOG_DIR}/* -maxdepth 1 -type f -mtime +14 -print | egrep '.*\.gz$' | xargs -r /bin/rm

# AWStats
{AW-ENABLED}15	*/6	*	*	*	root {AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog={AWSTATS_ENGINE_DIR}/awstats.pl >/dev/null 2>&1

# Rootkit Hunter
{RK-ENABLED}0 	*/12	*	*	*	root {RKHUNTER} --cronjob --createlogfile {RKHUNTER_LOG}.root --display-logfile 1>{RKHUNTER_LOG} 2>/dev/null

# Chkrootkit
{CR-ENABLED}0 	*/12	*	*	*	root {CHKROOTKIT} &> {CHKROOTKIT_LOG}

# Freshclam (Updating database)
{FR-ENABLED}    */12    *   *   *   vscan {FRESHCLAM}

# Look for and purge old sessions every 30 minutes
0,30	*	*	*	*	root	{TOOLS_ROOT_DIR}/ispcp-del-phptemp.sh >/dev/null 2>&1

# Delete old apache logfiles weekly
@weekly root {TOOLS_ROOT_DIR}/ispcp-del-logs.sh >/dev/null 2>&1

# [{DMN_NAME}] backup task START.
# [{DMN_NAME}] backup task END.

# [{DMN_NAME}]:{CRONJOB_ID} custom task START.
# [{DMN_NAME}]:{CRONJOB_ID} custom task END.

# [{DMN_NAME}] AWStats static tasks START.
# [{DMN_NAME}] AWStats static tasks END.

# delayed tasks END.
