Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
CLOG=lookout
2
LOG=auth cs dns fax ipboot listen mail telco runq cron timesync smtp ssh
3
 
4
all:V:
5
	cd /sys/log
6
	day=`{date|sed 's/(^[^ ]*) .*/\1/'}
7
	for(i in $LOG){
8
		if(test -e $i){
9
			cp $i $i.$day
10
			chmod 664 $i.$day
11
		}
12
		rm -f $i
13
		> $i
14
		chmod +arw $i
15
	}
16
	for(i in $CLOG){
17
		if(test -e $i){
18
			cp $i $i.$day
19
			chmod 664 $i.$day
20
		}
21
		rm -f $i
22
	}
23
 
24
startclog:VQ:
25
	for(i in $CLOG){
26
		aux/clog /mnt/consoles/$i /sys/log/$i &
27
	}