Re: Log rotation

2012-08-31 Thread Antonio Modesto
2012/8/29 Fajar A. Nugraha l...@fajar.net On Wed, Aug 29, 2012 at 9:10 PM, Antonio Modesto mode...@isimples.com.br wrote: Hi, Today I'm rotating my log files with a script that runs every night, the problem is that it must stop the radiusd process, rename the file, create a new one

Re: Log rotation

2012-08-31 Thread Fajar A. Nugraha
On Fri, Aug 31, 2012 at 6:54 PM, Antonio Modesto mode...@isimples.com.br wrote: 2012/8/29 Fajar A. Nugraha l...@fajar.net On Wed, Aug 29, 2012 at 9:10 PM, Antonio Modesto mode...@isimples.com.br wrote: Hi, Today I'm rotating my log files with a script that runs every night, the

Re: Log rotation

2012-08-31 Thread Maarten Carels
On 31 Aug 2012, at 14:17 , Fajar A. Nugraha wrote: On Fri, Aug 31, 2012 at 6:54 PM, Antonio Modesto mode...@isimples.com.br wrote: 2012/8/29 Fajar A. Nugraha l...@fajar.net On Wed, Aug 29, 2012 at 9:10 PM, Antonio Modesto mode...@isimples.com.br wrote: Hi, Today I'm rotating my log

Log rotation

2012-08-29 Thread Antonio Modesto
Hi, Today I'm rotating my log files with a script that runs every night, the problem is that it must stop the radiusd process, rename the file, create a new one then start radiusd again. Is there a way to do that transparently? Via syslog or something else? Regards. - List

Re: Log rotation

2012-08-29 Thread Arran Cudbard-Bell
On 29 Aug 2012, at 15:10, Antonio Modesto mode...@isimples.com.br wrote: Hi, Today I'm rotating my log files with a script that runs every night, the problem is that it must stop the radiusd process, rename the file, create a new one then start radiusd again. Is there a way to do that

Re: Log rotation

2012-08-29 Thread Fajar A. Nugraha
On Wed, Aug 29, 2012 at 9:10 PM, Antonio Modesto mode...@isimples.com.br wrote: Hi, Today I'm rotating my log files with a script that runs every night, the problem is that it must stop the radiusd process, rename the file, create a new one then start radiusd again. Is there a way to do that

Log-rotation FeeBSD 8.2

2012-04-30 Thread newuse
Hi all, something strange: I am trying to setup newsyslog to rotate logs of FreeRADIUS 2.1.11 my setup string is looking like [code] /var/log/radius.log freeradius:freeradius 644 7 5 * Z [/code] but after rotation no logs are writing to /var/log/radius.log until restarting freeradius But if I

Re: Log-rotation FeeBSD 8.2

2012-04-30 Thread Alan DeKok
new...@qip.ru wrote: Hi all, something strange: I am trying to setup newsyslog to rotate logs of FreeRADIUS 2.1.11 my setup string is looking like [code] /var/log/radius.log freeradius:freeradius 644 7 5 * Z [/code] but after rotation no logs are writing to /var/log/radius.log until

Re: Log-rotation FeeBSD 8.2

2012-04-30 Thread alan buxey
Hi, You need to HUP the server to get it to re-open the logs. This is normal daemon behavior. its a behaviour that changed with i think 2.1.10 - before then you could rotate a log and the daemon would start writing to the new logfile. we had to adjust our logrotate script to do a restart

Re: Log-rotation FeeBSD 8.2

2012-04-30 Thread Alan DeKok
alan buxey wrote: unfortunately this means we lose all the state-less stuff - EAP sessions being the big one. Huh? The EAP module isn't re-loaded on HUP. So it's ignored. The sessions still exist after HUP. Alan DeKok - List info/subscribe/unsubscribe? See

RE2: Log-rotation FeeBSD 8.2

2012-04-30 Thread newuse
You need to HUP the server to get it to re-open the logs. This is normal daemon behavior. Alan DeKok. Thanks, but why I can clean logs via echo command without restart? Could the same behavior be implemented to auto-rotation of FR2 logs? - List info/subscribe/unsubscribe? See

Re: Log-rotation FeeBSD 8.2

2012-04-30 Thread Matthew Newton
Hi, On Mon, Apr 30, 2012 at 05:01:19PM +0200, Alan DeKok wrote: alan buxey wrote: unfortunately this means we lose all the state-less stuff - EAP sessions being the big one. Huh? The EAP module isn't re-loaded on HUP. So it's ignored. The sessions still exist after HUP. Alan said

Re: RE2: Log-rotation FeeBSD 8.2

2012-04-30 Thread Matthew Newton
On Mon, Apr 30, 2012 at 07:07:27PM +0400, new...@qip.ru wrote: You need to HUP the server to get it to re-open the logs. This is normal daemon behavior. Alan DeKok. Thanks, but why I can clean logs via echo command without restart? Truncating a file and changing its name are not the

Re: Log Rotation

2007-05-20 Thread Alan DeKok
Guy Fraser wrote: I have not checked in quite a while, but at one point a while back, I suggested using configurable dynamic log file names, like the detail files have. I used to use such a beast on a version of Cistron Radius that I customized, but I ran into problems trying to make it work

Log Rotation

2007-05-18 Thread barry steyn
normally it starts to chew up 98% CPU from this point onwards and completely stops responding to accounting packets. I have to killall -9 radiusd, it won't even respond to my SIGTERM. Running in debug mode unfortunately just causes radiusd to segfault a few seconds after the log rotation (see output

Re: Log Rotation

2007-05-18 Thread Alan DeKok
have to killall -9 radiusd, it won't even respond to my SIGTERM. Running in debug mode unfortunately just causes radiusd to segfault a few seconds after the log rotation (see output below). 1.1.x doesn't handle HUP very well. We hope to fix this in 2.0.0 Alan DeKok. -- http

Re: Log Rotation

2007-05-18 Thread Jack J Allan
radiusd is running normally it starts to chew up 98% CPU from this point onwards and completely stops responding to accounting packets. I have to killall -9 radiusd, it won't even respond to my SIGTERM. Running in debug mode unfortunately just causes radiusd to segfault a few seconds after the log

Re: Log Rotation

2007-05-18 Thread Brian A. Seklecki
, it won't even respond to my SIGTERM. Running in debug mode unfortunately just causes radiusd to segfault a few seconds after the log rotation (see output below). 1.1.x doesn't handle HUP very well. We hope to fix

Re: Log Rotation

2007-05-18 Thread Jack J Allan
On 5/18/07, Brian A. Seklecki [EMAIL PROTECTED] wrote: Another solution would be to perform logging via syslog(3), which absolves radiusd from trapping and handling signals and file handlers. Syslog-ng already does this very well -- why duplicate all of that code? ~BAS I've certainly looked

Re: Log Rotation

2007-05-18 Thread Alan DeKok
Brian A. Seklecki wrote: Another solution would be to perform logging via syslog(3), which absolves radiusd from trapping and handling signals and file handlers. Syslog-ng already does this very well -- why duplicate all of that code? As always, patches are welcome. Alan DeKok. --

Re: Log Rotation

2007-05-18 Thread Guy Fraser
On Fri, 2007-05-18 at 17:09 +0200, Jack J Allan wrote: On 5/18/07, Brian A. Seklecki [EMAIL PROTECTED] wrote: Another solution would be to perform logging via syslog(3), which absolves radiusd from trapping and handling signals and file handlers.

Re: Log Rotation

2007-05-18 Thread Peter Nixon
On Fri 18 May 2007, Guy Fraser wrote: On Fri, 2007-05-18 at 17:09 +0200, Jack J Allan wrote: On 5/18/07, Brian A. Seklecki [EMAIL PROTECTED] wrote: Another solution would be to perform logging via syslog(3), which absolves radiusd from trapping and handling signals

radacct log rotation

2005-10-09 Thread Ben
I was wondering if there was an easy way to rotate the logs every 10 days... It was recommended to me to run a script as a cron job, but I can't find a script that will do the job... - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html