# $Id: systraq.in,v 1.3 2004/10/15 14:55:56 joostvb Exp $
# /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/bin:/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_OPHOMES=yes st_snapshot /usr/local/etc/systraq/snapshot_pub.list /usr/local/etc/systraq/snapshot_pub.homelist > /usr/local/var/lib/systraq/snapshot_pub.stat
0 * * * *    root      st_snapshot /usr/local/etc/systraq/snapshot_root.list /usr/local/etc/systraq/snapshot_root.homelist > /usr/local/var/lib/systraq/snapshot_root.stat
#
