From b041498589af6d0c603f69233d3e481cbd5bfcb8 Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Thu, 17 Sep 2015 14:29:45 -0300 Subject: [PATCH] Fix logrotate debian --- debian/patches/logrotate-path.diff | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/debian/patches/logrotate-path.diff b/debian/patches/logrotate-path.diff index cce0e854db..6d1871fc82 100644 --- a/debian/patches/logrotate-path.diff +++ b/debian/patches/logrotate-path.diff @@ -1,4 +1,5 @@ -diff a/scripts/logrotate/freeradius b/scripts/logrotate/freeradius +diff --git a/scripts/logrotate/freeradius b/scripts/logrotate/freeradius +index cbeeb5f..bfb8220 100644 --- a/scripts/logrotate/freeradius +++ b/scripts/logrotate/freeradius @@ -1,7 +1,7 @@ @@ -10,16 +11,13 @@ diff a/scripts/logrotate/freeradius b/scripts/logrotate/freeradius # # -@@ -17,30 +17,30 @@ notifempty +@@ -17,28 +17,28 @@ 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 + copytruncate } # @@ -46,7 +44,7 @@ diff a/scripts/logrotate/freeradius b/scripts/logrotate/freeradius nocreate } -@@ -51,6 +51,6 @@ notifempty +@@ -49,6 +49,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. -- 2.47.2