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/06 02:20:04 UTC

svn commit: r1089284 - /httpd/httpd/trunk/build/rpm/httpd.logrotate

Author: minfrin
Date: Wed Apr  6 00:20:04 2011
New Revision: 1089284

URL: http://svn.apache.org/viewvc?rev=1089284&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/trunk/build/rpm/httpd.logrotate

Modified: httpd/httpd/trunk/build/rpm/httpd.logrotate
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/rpm/httpd.logrotate?rev=1089284&r1=1089283&r2=1089284&view=diff
==============================================================================
--- httpd/httpd/trunk/build/rpm/httpd.logrotate (original)
+++ httpd/httpd/trunk/build/rpm/httpd.logrotate Wed Apr  6 00:20:04 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
 }