Use 'kill' instead of 'systemctl' when rotating log files

This commit is contained in:
Jamie Nguyen 2013-02-05 07:18:30 +00:00
parent eea47d5274
commit 4f8de83470
2 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@
compress
sharedscripts
postrotate
/bin/systemctl kill --signal=SIGUSR1 nginx.service
/bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
endscript
}

View File

@ -11,7 +11,7 @@
Name: nginx
Epoch: 1
Version: 1.2.6
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A high performance web server and reverse proxy server
Group: System Environment/Daemons
@ -202,6 +202,10 @@ fi
%changelog
* Tue Feb 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-6
- use 'kill' instead of 'systemctl' when rotating log files to workaround
SELinux issue (#889151)
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-5
- uncomment "include /etc/nginx/conf.d/*.conf by default but leave the
conf.d directory empty (#903065)