[BACK]Return to monthly CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/monthly between version 1.1 and 1.2

version 1.1, 1993/03/21 09:45:37 version 1.2, 1993/04/02 07:58:02
Line 12  echo "Subject: $host monthly run output"
Line 12  echo "Subject: $host monthly run output"
   
 echo ""  echo ""
 echo -n "Rotating log files:"  echo -n "Rotating log files:"
 #cd /var/log  cd /var/log
 for i in kerberos.log lpd-errs wtmp; do  for i in kerberos.log lpd-errs wtmp aculog; do
         echo -n " $i"          echo -n " $i"
         if [ -f $i.5 ]; then mv -f $i.5 $i.6; fi          if [ -f $i.5.Z ]; then mv -f $i.5.Z $i.6.Z; fi
         if [ -f $i.4 ]; then mv -f $i.4 $i.5; fi          if [ -f $i.4.Z ]; then mv -f $i.4.Z $i.5.Z; fi
         if [ -f $i.3 ]; then mv -f $i.3 $i.4; fi          if [ -f $i.3.Z ]; then mv -f $i.3.Z $i.4.Z; fi
         if [ -f $i.2 ]; then mv -f $i.2 $i.3; fi          if [ -f $i.2.Z ]; then mv -f $i.2.Z $i.3.Z; fi
         if [ -f $i.1 ]; then mv -f $i.1 $i.2; fi          if [ -f $i.1.Z ]; then mv -f $i.1.Z $i.2.Z; fi
         if [ -f $i.0 ]; then mv -f $i.0 $i.1; fi          if [ -f $i.0.Z ]; then mv -f $i.0.Z $i.1.Z; fi
         if [ -f $i ]; then mv -f $i $i.0; fi          mv -f $i $i.0
         >$i          compress -f $i.0
           cp /dev/null $i
           chmod 640 $i
 done  done
   echo "."
   
 echo ""  echo ""
   echo "Rotating cron log:"
   cd /var/cron
   rm -f log.3.Z
   if [ -f log.2.Z ]; then mv -f log.2.Z  log.3.Z; fi
   if [ -f log.1.Z ]; then mv -f log.1.Z  log.2.Z; fi
   if [ -f log.0.Z ]; then mv -f log.0.Z  log.1.Z; fi
   mv -f log log.0
   compress -f log.0
   cp /dev/null log
   chmod 600 log
   echo "."

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>