[nginx/f17] Fix postrotate script in nginx.logrotate
Jamie Nguyen
jamielinux at fedoraproject.org
Mon May 14 18:19:52 UTC 2012
commit eca27e2d0a7d801baff508e7df3706724846c9f7
Author: Jamie Nguyen <jamie at tomoyolinux.co.uk>
Date: Mon May 14 19:19:33 2012 +0100
Fix postrotate script in nginx.logrotate
nginx.logrotate | 2 +-
nginx.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/nginx.logrotate b/nginx.logrotate
index 1c0f42d..cf4cdc5 100644
--- a/nginx.logrotate
+++ b/nginx.logrotate
@@ -6,7 +6,7 @@
compress
sharedscripts
postrotate
- /etc/init.d/nginx reopen_logs
+ /bin/kill -USR1 $(cat /run/nginx.pid 2>/dev/null) 2>/dev/null || :
endscript
}
diff --git a/nginx.spec b/nginx.spec
index 4e5bc74..61a9724 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -11,7 +11,7 @@
Name: nginx
Epoch: 1
Version: 1.0.15
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A high performance web server and reverse proxy server
Group: System Environment/Daemons
@@ -213,6 +213,9 @@ fi
%changelog
+* Mon May 14 2012 Jamie Nguyen <jamie at tomoyolinux.co.uk> - 1:1.0.15-3
+- fix incorrect postrotate script in nginx.logrotate
+
* Thu Apr 19 2012 Jamie Nguyen <jamie at tomoyolinux.co.uk> - 1:1.0.15-2
- renable auto-cc-gcc patch due to warnings on rawhide
More information about the scm-commits
mailing list