logrotaion for detail module (auth-detail.log)

classic Classic list List threaded Threaded
2 messages Options
| Threaded
Open this post in threaded view
|

logrotaion for detail module (auth-detail.log)

work vlpl
Hi,

I have a question about logrotation and how FreeRADIUS handle the
situation when the log file renamed or removed.

I need to rotate a log file from `detail` module. I did the couple
tests - just tried to remove or rename `auth-detail.log` file and it
seems that FreeRADIUS just create a log file if there is no file.
However, there are old replies in mail list that saying I should use
`radmin -e "hup detail"` to recreate `auth-detail.log` file after
rotation.  http://lists.freeradius.org/pipermail/freeradius-users/2017-July/088293.html
http://lists.freeradius.org/pipermail/freeradius-users/2016-June/083943.html

So my question is do I still need to send HUP signal to detail module
or the changes in FreeRADIUS code were made so it not necessary
anymore?

--
Vladimir
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: logrotaion for detail module (auth-detail.log)

Alan DeKok-2
On Oct 25, 2020, at 11:41 AM, work vlpl <[hidden email]> wrote:

> I have a question about logrotation and how FreeRADIUS handle the
> situation when the log file renamed or removed.
>
> I need to rotate a log file from `detail` module. I did the couple
> tests - just tried to remove or rename `auth-detail.log` file and it
> seems that FreeRADIUS just create a log file if there is no file.
> However, there are old replies in mail list that saying I should use
> `radmin -e "hup detail"` to recreate `auth-detail.log` file after
> rotation.  http://lists.freeradius.org/pipermail/freeradius-users/2017-July/088293.html
> http://lists.freeradius.org/pipermail/freeradius-users/2016-June/083943.html
>
> So my question is do I still need to send HUP signal to detail module
> or the changes in FreeRADIUS code were made so it not necessary
> anymore?

  If you have "locking=no", you don't need to HUP the module.

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html