Welcome! Log In Create A New Profile

Advanced

Question about rotating log files with USR1 signal

Fabiano Furtado Pessoa Coelho
July 18, 2022 12:40PM
Hi...

As described in the official documentation
http://nginx.org/en/docs/control.html#logs "The master process will
then re-open all currently open log files and assign them an
unprivileged user under which the worker processes are running, as an
owner.", the owner of the log file changes after the USR1 signal is
sent to NGINX master process.

Why does this behavior happen? Is there a way to keep the original
root owner of the log file?

The "systemctl reload nginx" is capable of creating a new log file
with the original root owner, but I think this isn't a clever
solution.

Thanks in advance.
Fabiano
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Question about rotating log files with USR1 signal

Fabiano Furtado Pessoa Coelho July 18, 2022 12:40PM

Re: Question about rotating log files with USR1 signal

Maxim Dounin July 18, 2022 11:18PM

Re: Question about rotating log files with USR1 signal

Fabiano Furtado Pessoa Coelho July 19, 2022 06:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready