You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/04/08 00:51:31 UTC
svn commit: r1090055 - /httpd/httpd/branches/2.2.x/build/rpm/httpd.logrotate
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
}