Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/sysconfig/auth/boundary/sys.log.mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


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 &
	}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.