From 47ff4a8abfa7ddbecfc16d72206f22f72ef0ed55 Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Thu, 17 Sep 2015 11:27:21 -0300 Subject: [PATCH] debian: Fixing logrotate script --- debian/patches/logrotate-path.diff | 56 ++++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 57 insertions(+) create mode 100644 debian/patches/logrotate-path.diff diff --git a/debian/patches/logrotate-path.diff b/debian/patches/logrotate-path.diff new file mode 100644 index 00000000000..cce0e854dbd --- /dev/null +++ b/debian/patches/logrotate-path.diff @@ -0,0 +1,56 @@ +diff a/scripts/logrotate/freeradius b/scripts/logrotate/freeradius +--- a/scripts/logrotate/freeradius ++++ b/scripts/logrotate/freeradius +@@ -1,7 +1,7 @@ + # + # Sample logrotate file for FreeRADIUS + # +-# You can use this to rotate the /var/log/radius/* files, simply copy it to /etc/logrotate.d/radiusd ++# You can use this to rotate the /var/log/freeradius/* files, simply copy it to /etc/logrotate.d/radiusd + # + + # +@@ -17,30 +17,30 @@ notifempty + # + # The main server log + # +-/var/log/radius/radius.log { ++/var/log/freeradius/radius.log { + postrotate +- /sbin/killall -HUP radiusd ++ /etc/init.d/freeradius reload + endscript + } + + # + # Session monitoring utilities + # +-/var/log/radius/checkrad.log /var/log/radius/radwatch.log { ++/var/log/freeradius/checkrad.log /var/log/freeradius/radwatch.log { + nocreate + } + + # + # Session database modules + # +-/var/log/radius/radutmp /var/log/radius/radwtmp { ++/var/log/freeradius/radutmp /var/log/freeradius/radwtmp { + nocreate + } + + # + # SQL log files + # +-/var/log/radius/sqllog.sql { ++/var/log/freeradius/sqllog.sql { + nocreate + } + +@@ -51,6 +51,6 @@ notifempty + # (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. +-/var/log/radius/radacct/*/detail { ++/var/log/freeradius/radacct/*/detail { + nocreate + } diff --git a/debian/patches/series b/debian/patches/series index 893d2d1716b..886c023689f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ radiusd-to-freeradius.diff disable-dhcp-bydefault.diff +logrotate-path.diff -- 2.47.3