FreeRadius Logrotate settings for FreeBSD
Hi, we are using FreeRADIUS Version 2.1.12 In FREEBSD v.9. our logrotate settings like below. /var/log/freeradius/radius.log { daily rotate 8 create missingok compress postrotate kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript } after rotate log radius.log file remain 0 lenght what is correnct settings of postrotate section of freeradius ? thanks in advance. -- Selçuk YAZAR
On Thu, Mar 8, 2012 at 6:04 PM, Selcuk Yazar <selcuk.yazar@gmail.com> wrote:
Hi, we are using FreeRADIUS Version 2.1.12 In FREEBSD v.9.
our logrotate settings like below.
/var/log/freeradius/radius.log { daily rotate 8 create missingok compress postrotate kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript }
after rotate log radius.log file remain 0 lenght what is correnct settings of postrotate section of freeradius ?
Is the PID file correct? Try restarting FR, and send kill -HUP manually. What does the log file say? Does it say anything about "HUP" and "reopening log file"? Or does it say something like "unable to read configuration file"? -- Fajar
Hi, You probably need to HUP your log daemon as well. cheers, tamas ________________________________ From: freeradius-users-bounces+tamas.becz=ericsson.com@lists.freeradius.org [mailto:freeradius-users-bounces+tamas.becz=ericsson.com@lists.freeradius.org] On Behalf Of Selcuk Yazar Sent: Thursday, March 08, 2012 12:04 PM To: freeradius-users@lists.freeradius.org Subject: FreeRadius Logrotate settings for FreeBSD Hi, we are using FreeRADIUS Version 2.1.12 In FREEBSD v.9. our logrotate settings like below. /var/log/freeradius/radius.log { daily rotate 8 create missingok compress postrotate kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript } after rotate log radius.log file remain 0 lenght what is correnct settings of postrotate section of freeradius ? thanks in advance. -- Selçuk YAZAR
participants (3)
-
Fajar A. Nugraha -
Selcuk Yazar -
Tamás Becz