]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
rpm spec file: Use "service httpd graceful" rather than a hard coded HUP
authorGraham Leggett <minfrin@apache.org>
Thu, 7 Apr 2011 22:51:31 +0000 (22:51 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 7 Apr 2011 22:51:31 +0000 (22:51 +0000)
to rotate logs, so that we honour the end user's choice of pid file.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1090055 13f79535-47bb-0310-9956-ffa450edef68

build/rpm/httpd.logrotate

index dd0ce1b9a96d39c3ea4aa0da34d7caf86a9cf1ce..1a03e85ec0d04b50a3840552e07970d7b0469907 100644 (file)
@@ -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
 }