1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#! /bin/sh # # radiusd Cron script to rotate radwtmp file monthly. # prefix=@prefix@ localstatedir=@localstatedir@ logdir=@logdir@ umask 022 cd $logdir # Take care of the standard logfiles. cd $logdir if [ -f radwtmp ] then savelog -g adm -m 644 -c 6 radwtmp > /dev/null fi