httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1089284 - /httpd/httpd/trunk/build/rpm/httpd.logrotate
Date Wed, 06 Apr 2011 00:20:04 GMT
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
 }



Mime
View raw message