[nginx/f16] Fix postrotate script in nginx.logrotate

Jamie Nguyen jamielinux at fedoraproject.org
Mon May 14 18:22:36 UTC 2012


commit dab451211b77d7d817f80d9f7460d497ebe6cb1c
Author: Jamie Nguyen <jamie at tomoyolinux.co.uk>
Date:   Mon May 14 19:22:15 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..6e37baf 100644
--- a/nginx.logrotate
+++ b/nginx.logrotate
@@ -6,7 +6,7 @@
     compress
     sharedscripts
     postrotate
-        /etc/init.d/nginx reopen_logs
+        /bin/kill -USR1 $(cat /var/run/nginx.pid 2>/dev/null) 2>/dev/null || :
     endscript
 }
 
diff --git a/nginx.spec b/nginx.spec
index c69bc08..d0c0c6a 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -9,7 +9,7 @@
 
 Name:              nginx
 Version:           1.0.15
-Release:           1%{?dist}
+Release:           2%{?dist}
 
 Summary:           A high performance web server and reverse proxy server
 Group:             System Environment/Daemons
@@ -206,6 +206,9 @@ fi
 
 
 %changelog
+* Mon May 14 2012 Jamie Nguyen <jamie at tomoyolinux.co.uk> - 1.0.15-2
+- fix postrotate script in nginx.logrotate (#705264)
+
 * Thu Apr 19 2012 Jamie Nguyen <jamie at tomoyolinux.co.uk> - 1.0.15-1
 - update to upstream release 1.0.15
 - CVE-2012-2089 (#812093)


More information about the scm-commits mailing list