[ejabberd] log rotation

Holger Weiß holger at zedat.fu-berlin.de
Mon Sep 11 00:14:23 MSK 2017


* Victor Sudakov <vas at mpeks.tomsk.su> [2017-09-10 11:55]:
> I see that the ejabberd log is always open by the "beam" process:
> 
> $ fstat /var/log/ejabberd/ejabberd.log USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME
> ejabberd beam       51578   11 /        9229454 -rw-r--r--  4074468  w /var/log/ejabberd/ejabberd.log
> 
> When I want to rotate this log with newsyslog(8), how do I signal
> ejabberd/beam to reopen the log?

That's not necessary, ejabberd (well, lager¹) will notice rotation and
reopen log files automagically.

Holger

¹ https://github.com/erlang-lager/lager


More information about the ejabberd mailing list