Bug in cron-dccd of dcc-dccd-1.0.52

Gary Mills mills@cc.UManitoba.CA
Sat May 4 16:14:29 UTC 2002


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-



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.