Log file ownership and the USR1 signal

Wilson Bilkovich wilsonb at gmail.com
Thu Jun 21 22:38:21 MSD 2007


I've noticed an nginx behavior that seems odd to me. Is this a
configuration problem on my end, or something that other people have
experienced?

When nginx starts the first time, the access and error logs are
created with root.root ownership.
When I hit nginx with the USR1 signal (which I do for log rotation
purposes), the file ownership is changed to 'foo.root', where 'foo' is
the user that nginx runs as.

I'm fine with that.. but it seems odd that the initial log file would
not be created with the same ownership.





More information about the nginx mailing list