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 just run echo "" > /var/log/radius.log all logs are clean and writing well What am I doing wrong? -- Best regards, NewUse.
newuse@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 restarting freeradius
You need to HUP the server to get it to re-open the logs. This is normal daemon behavior. Alan DeKok.
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 of the daemon upon log rotate (as post-rotate function)....which means our server is restarted each day now.. unfortunately this means we lose all the state-less stuff - EAP sessions being the big one. alan
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 restart... as we found out recently, a HUP could cause mschap issues until you wrote your xlat patch a couple of weeks ago. Since that patch, we're doing HUP and it's working just fine - thanks. But using ntlm_auth (with %{mschap:...}) in 2.1.12 can potentially have issues. Cheers, Matthew -- Matthew Newton, Ph.D. <mcn4@le.ac.uk> Systems Architect (UNIX and Networks), Network Services, I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom For IT help contact helpdesk extn. 2253, <ithelp@le.ac.uk>
participants (4)
-
alan buxey -
Alan DeKok -
Matthew Newton -
newuse@qip.ru