#! /bin/sh
# radiusd-livingston	Cron script to rotate radiusd log files daily.
#
# Keep 32 days worth... they compress very well.

test -d /var/log/radiusd-livingston || exit 0

cd /var/log/radiusd-livingston
for LOG in */detail
do
   if [ -f $LOG ]; then
      savelog -g adm -m 640 -u root -c 32 $LOG >/dev/null
   fi
done

# No need to restart radiusd
