Use correct file ownership when rotating log files

This commit is contained in:
Jamie Nguyen 2012-12-19 09:46:09 +00:00
parent ae0c321445
commit 48bb9f19f4
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/var/log/nginx/*log {
create 0644 root nginx
create 0644 nginx nginx
daily
rotate 10
missingok

View File

@ -11,7 +11,7 @@
Name: nginx
Epoch: 1
Version: 1.2.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A high performance web server and reverse proxy server
Group: System Environment/Daemons
@ -202,6 +202,9 @@ fi
%changelog
* Wed Dec 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-3
- use correct file ownership when rotating log files
* Tue Dec 18 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-2
- send correct kill signal and use correct file permissions when rotating
log files (#888225)