shithub: riscv

ref: 19a548fd49572bf41df08f2e29f96a2f1c88258b
dir: /sys/lib/sysconfig/auth/boundary/sys.log.mkfile/

View raw version
CLOG=lookout
LOG=auth cs dns fax ipboot listen mail telco runq cron timesync smtp ssh

all:V:
	cd /sys/log
	day=`{date|sed 's/(^[^ ]*) .*/\1/'}
	for(i in $LOG){
		if(test -e $i){
			cp $i $i.$day
			chmod 664 $i.$day
		}
		rm -f $i
		> $i
		chmod +arw $i
	}
	for(i in $CLOG){
		if(test -e $i){
			cp $i $i.$day
			chmod 664 $i.$day
		}
		rm -f $i
	}

startclog:VQ:
	for(i in $CLOG){
		aux/clog /mnt/consoles/$i /sys/log/$i &
	}