[Bug 499494] [NEW] nginx logrotate conf file sets wrong owner for the log
Eduardo Cereto
eduardo at cereto.net
Tue Dec 22 15:10:30 UTC 2009
Public bug reported:
Binary package hint: nginx
here's the output for the actual logrotate conf file on nginx:
$ cat /etc/logrotate.d/nginx
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
endscript
}
It creates the new log with root access. When it rotates for the first
time nginx is not able to output to the log anymore since it runs by
default as www-data. A quickfix would be to change only the logrotate
fix to this:
(...)
create 640 www-data www-data
(...)
I'm on fully updated karmic
** Affects: nginx (Ubuntu)
Importance: Undecided
Status: New
--
nginx logrotate conf file sets wrong owner for the log
https://bugs.launchpad.net/bugs/499494
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list