Add hup to default logrotate script
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Sep 2012 17:46:25 +0000 (18:46 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 5 Sep 2012 17:46:25 +0000 (18:46 +0100)
scripts/logrotate.freeradius [deleted file]
scripts/logrotate.freeradius.in [new file with mode: 0644]

diff --git a/scripts/logrotate.freeradius b/scripts/logrotate.freeradius
deleted file mode 100644 (file)
index a12505b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-#  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
-}
diff --git a/scripts/logrotate.freeradius.in b/scripts/logrotate.freeradius.in
new file mode 100644 (file)
index 0000000..a54df0e
--- /dev/null
@@ -0,0 +1,16 @@
+#
+#  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
+}