# $Id: systraq.in 202 2005-02-09 21:15:48Z joostvb $
# /etc/cron.d/systraq - cronjob for systraq jobs
#
# BEWARE! Use Debian's cron package >= 3.0pl1-68 or you'll get his by
# bug http://bugs.debian.org/62141 .
#
# BEWARE!  3.0pl1-73 <= debian cron <= 3.0pl1-79 doesn't deal with
# symlinks in /etc/cron.d/ .  Copy this file if you use any of these
# cron's.  See Debian bug #210467 .
#
# This PATH is useful if you've used a non-standard bindir during ./configure
PATH=/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
#
# m h dom mon dow usercommand
#
# run filetraq every hour at :30.
30 * * * *   systraq   [ -r /usr/local/etc/systraq/filetraq.conf ] && filetraq /usr/local/etc/systraq/filetraq.conf  /usr/local/var/lib/systraq/filetraq
#
# clean up filetraq backup files older than two months
# @monthly
0 0 1 * *    systraq   [ -d /usr/local/var/lib/systraq/filetraq ] && find /usr/local/var/lib/systraq/filetraq -type f -name "*.??.??__??.??" -ctime +60 -exec rm \{\} \;
#
# sent the daily systraq email
# @daily
0 0 * * *    systraq   systraq | mailx -s "[Systraq] `hostname` `date +\%Y\%m\%d`" systraq
#
# update the systraq status files
# @hourly
0 * * * *    systraq   st_snapshot.hourly
0 * * * *    root      ST_MODE=root st_snapshot.hourly
#
