Gary Mills
mills@cc.UManitoba.CA
Sat, 4 May 2002 11:14:29 -0500
I noticed that after I defined
DCCM_LOGDIR=H?log
in dcc_conf to set up hourly directories for dcc log files,
that the old log files were not being cleaned up by the cron-dccd
script. The `H?' prefix was confusing the script. This patch
fixes it:
================================================================
*** cron-dccd.Oin Mon Mar 18 12:58:31 2002
--- cron-dccd.in Fri May 3 11:38:42 2002
***************
*** 68,74 ****
fi
# removed old dccm log files
! DCCM_LOGDIR=`echo $DCCM_LOGDIR | sed -e "s@^[^/]@$DCC_HOMEDIR/&@"`
if test ! -z "$DBCLEAN_LOGDAYS" && test -d "$DCCM_LOGDIR"; then
find $DCCM_LOGDIR -name 'msg.*' -mtime +$DBCLEAN_LOGDAYS \
| xargs /bin/rm -f
--- 68,74 ----
fi
# removed old dccm log files
! DCCM_LOGDIR=`echo $DCCM_LOGDIR | sed -e "s@^[DHM]?@@" -e "s@^[^/]@$DCC_HOMEDIR/&@"`
if test ! -z "$DBCLEAN_LOGDAYS" && test -d "$DCCM_LOGDIR"; then
find $DCCM_LOGDIR -name 'msg.*' -mtime +$DBCLEAN_LOGDAYS \
| xargs /bin/rm -f
================================================================
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-