Updated freeradius.logrotate from Debian's 2.1.10+dfsg-2
authorFajar A. Nugraha <github@fajar.net>
Mon, 16 Jan 2012 07:26:22 +0000 (14:26 +0700)
committerFajar A. Nugraha <github@fajar.net>
Mon, 16 Jan 2012 07:45:20 +0000 (14:45 +0700)
This commit applies changes to debian/freeradius.logrotate on Debian's
2.1.10+dfsg-2, by Josip Rodin <joy-packages@debian.org>.

Relevant changelog from Debian's 2.1.10+dfsg-2 changelog:
Since 2.1.9, the daemon stopped reopening the default radius.log file
constantly, which means the default logrotate setup breaks the default
logging. D'oh. We now have to send SIGHUP to the daemon as a postrotate
action, which makes it reopen log files and continue normally.
* Added delaycompress to the logrotate options, just to be on the safe
  side.
* Added a reload action into the init script accordingly, so that the
  right pidfile is picked up (one that can be overridden by the admin
  in /etc/default/freeradius, available since the last release).
* Called reload from the postrotate section, closes: #602815.

debian/freeradius.logrotate

index 1be995a..b8483e2 100644 (file)
@@ -2,6 +2,10 @@
         weekly
         rotate 52
         compress
+        delaycompress
         notifempty
+        missingok
+        postrotate
+                /etc/init.d/freeradius reload > /dev/null
+        endscript
 }
-