#
#	DIABLO CRONTAB
#
# Run dspoolout once every 5 minutes
#
# Attempt to run dexpire once every 4 hours, and if it fails,
#
# Retry the expire run once an hour until success
# 
# The daily script rotates the logs and cleans bogus article files
#
# The weekly script regenerates the dhistory file, culling expired
# entries over 16 days old.
#
DBIN=/usr/lib/news/dbin
L=/var/log/news
A=/usr/lib/news/adm
#
*/5 *   * * *	news	$DBIN/dspoolout >> $L/dspoolout.log 2>&1
5   */4 * * *	news	(cd $A; for i in quadhr.*; do ./$i; done) >>$L/daily.log 2>&1
50  *   * * *	news	(cd $A; for i in hourly.*; do ./$i; done) >>$L/daily.log 2>&1
40  2   * * *	news	(cd $A; for i in daily.*; do ./$i; done) >>$L/daily.log 2>&1
30  2   * * 1,4	news	(cd $A; for i in biweekly.*; do ./$i; done) >>$L/daily.log 2>&1
30  2   * * 0	news	(cd $A; for i in weekly.*; do ./$i; done) >> $L/daily.log 2>&1
