]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Also fix the vanilla logrotate script
authorZenon Mousmoulas <zmousm@noc.grnet.gr>
Tue, 17 Oct 2017 13:24:20 +0000 (16:24 +0300)
committerZenon Mousmoulas <zmousm@noc.grnet.gr>
Tue, 17 Oct 2017 13:24:20 +0000 (16:24 +0300)
scripts/logrotate/freeradius

index e8cf706dc66c86fb7127f4694b9e806941aa5f9f..bb3e4252f32c578a59221fb4799082a76fe0b188 100644 (file)
@@ -4,34 +4,35 @@
 #  You can use this to rotate the /var/log/radius/* files, simply copy it to /etc/logrotate.d/radiusd
 #
 
-#
-#    Global options for all files
-#
-daily
-rotate 14
-missingok
-compress
-delaycompress
-notifempty
-
 #
 #  The main server log
 #
 /var/log/radius/radius.log {
+       # common options
+       daily
+       rotate 52
+       missingok
+       compress
+       delaycompress
+       notifempty
+
        copytruncate
 }
 
-#
+# (in order)
 #  Session monitoring utilities
-#
-/var/log/radius/checkrad.log /var/log/radius/radwatch.log {
-       nocreate
-}
-
-#
 #  SQL log files
-#
-/var/log/radius/sqllog.sql {
+/var/log/freeradius/checkrad.log /var/log/freeradius/radwatch.log
+/var/log/freeradius/sqllog.sql
+{
+       # common options
+       daily
+       rotate 52
+       missingok
+       compress
+       delaycompress
+       notifempty
+
        nocreate
 }
 
@@ -43,5 +44,13 @@ notifempty
 # 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.
 /var/log/radius/radacct/*/detail {
+       # common options
+       daily
+       rotate 52
+       missingok
+       compress
+       delaycompress
+       notifempty
+
        nocreate
 }