+++ /dev/null
-#
-# Sample configuration file for the log rotation scripts.
-#
-# It needs to be edited for your local configuration.
-#
-/var/log/radius/radius.log {
- weekly
- missingok
- rotate 14
- compress
- notifempty
-}
--- /dev/null
+#
+# Sample logrotate file for FreeRADIUS.
+#
+# It needs to be edited for your local configuration.
+#
+@localstatedir@/log/radius/radius.log {
+ daily
+ rotate 14
+ compress
+ delaycompress
+ missingok
+ notifempty
+ postrotate
+ kill -HUP `cat @localstatedir@/run/radiusd.pid` > /dev/null 2>&1
+ endscript
+}