Loading templates/radiusd.logrotate.erbdeleted 100644 → 0 +0 −60 Original line number Diff line number Diff line # You can use this to rotate the <%= @fr_logpath %>/* files, simply copy # it to /etc/logrotate.d/radiusd # There are different detail-rotating strategies you can use. One is # to write to a single detail file per IP and use the rotate config # below. Another is to write to a daily detail file per IP with: # detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail # (or similar) in radiusd.conf, without rotation. If you go with the # second technique, you will need another cron job that removes old # detail files. You do not need to comment out the below for method #2. <%= @fr_logpath %>/radacct/*/*.log { daily rotate 7 nocreate missingok compress } <%= @fr_logpath %>/checkrad.log { weekly rotate 1 create missingok compress } <%= @fr_logpath %>/radius*.log { weekly rotate 26 create missingok compress } <%= @fr_logpath %>/radutmp { weekly rotate 1 create compress missingok } <%= @fr_logpath %>/radwtmp { weekly rotate 1 create compress missingok } <%= @fr_logpath %>/sqltrace.sql { weekly rotate 1 create compress missingok } lastrotate if [ -e /var/run/radiusd/radiusd.pid ] then; kill -HUP `cat /var/run/radiusd/radiusd.pid`; fi; endscript Loading
templates/radiusd.logrotate.erbdeleted 100644 → 0 +0 −60 Original line number Diff line number Diff line # You can use this to rotate the <%= @fr_logpath %>/* files, simply copy # it to /etc/logrotate.d/radiusd # There are different detail-rotating strategies you can use. One is # to write to a single detail file per IP and use the rotate config # below. Another is to write to a daily detail file per IP with: # detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail # (or similar) in radiusd.conf, without rotation. If you go with the # second technique, you will need another cron job that removes old # detail files. You do not need to comment out the below for method #2. <%= @fr_logpath %>/radacct/*/*.log { daily rotate 7 nocreate missingok compress } <%= @fr_logpath %>/checkrad.log { weekly rotate 1 create missingok compress } <%= @fr_logpath %>/radius*.log { weekly rotate 26 create missingok compress } <%= @fr_logpath %>/radutmp { weekly rotate 1 create compress missingok } <%= @fr_logpath %>/radwtmp { weekly rotate 1 create compress missingok } <%= @fr_logpath %>/sqltrace.sql { weekly rotate 1 create compress missingok } lastrotate if [ -e /var/run/radiusd/radiusd.pid ] then; kill -HUP `cat /var/run/radiusd/radiusd.pid`; fi; endscript