head     1.2;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     93.01.19.15.38.16;  author ks;  state Exp;
branches ;
next     1.1;

1.1
date     93.01.19.15.37.44;  author ks;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@*** empty log message ***
@
text
@#! /bin/sh
#
# Run daily to cycle through a weeks worth of DP log files..
#
. /etc/dp.conf
LOG=call.log
PPPLOG=ppp.log
if test -d ${DPLOG_DIR}
then
    cd ${DPLOG_DIR}
    if test -s $LOG
    then
	test -f $LOG.6 && mv $LOG.6  $LOG.7
	test -f $LOG.5 && mv $LOG.5  $LOG.6
	test -f $LOG.4 && mv $LOG.4  $LOG.5
	test -f $LOG.3 && mv $LOG.3  $LOG.4
	test -f $LOG.2 && mv $LOG.2  $LOG.3
	test -f $LOG.1 && mv $LOG.1  $LOG.2
	test -f $LOG.0 && mv $LOG.0  $LOG.1
	cp $LOG    $LOG.0
	chgrp ppp    $LOG $LOG.0
	chmod 664    $LOG $LOG.0
	cp /dev/null $LOG
    fi
    if test -s $PPPLOG
    then
	test -f $PPPLOG.2 && mv $PPPLOG.2  $PPPLOG.3
	test -f $PPPLOG.1 && mv $PPPLOG.1  $PPPLOG.2
	test -f $PPPLOG.0 && mv $PPPLOG.0  $PPPLOG.1
	cp $PPPLOG    $PPPLOG.0
	chgrp ppp    $PPPLOG $PPPLOG.0
	chmod 664    $PPPLOG $PPPLOG.0
	cp /dev/null $PPPLOG
    fi
fi
@


1.1
log
@Initial revision
@
text
@d7 1
d24 10
@
