httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1090055 - /httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate
Date Thu, 07 Apr 2011 22:51:31 GMT
Author: minfrin
Date: Thu Apr  7 22:51:31 2011
New Revision: 1090055

URL: http://svn.apache.org/viewvc?rev=1090055&view=rev
Log:
rpm spec file: Use "service httpd graceful" rather than a hard coded HUP
to rotate logs, so that we honour the end user's choice of pid file.

Modified:
    httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate

Modified: httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate?rev=1090055&r1=1090054&r2=1090055&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate (original)
+++ httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate Thu Apr  7 22:51:31 2011
@@ -3,6 +3,6 @@
     notifempty
     sharedscripts
     postrotate
-	/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
+	/sbin/service httpd graceful 2> /dev/null || true
     endscript
 }



Mime
View raw message