From b2a4380f418ec73fe75699ad04506cdef2b88b98 Mon Sep 17 00:00:00 2001 From: jorton Date: Tue, 8 Sep 2009 15:58:46 +0000 Subject: [PATCH] - restart service in posttrans (#491567) --- httpd.logrotate | 1 + httpd.spec | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/httpd.logrotate b/httpd.logrotate index a2529a3..d233e9c 100644 --- a/httpd.logrotate +++ b/httpd.logrotate @@ -2,6 +2,7 @@ missingok notifempty sharedscripts + delaycompress postrotate /bin/kill -HUP `cat /var/run/httpd/httpd.pid 2>/dev/null` 2> /dev/null || true endscript diff --git a/httpd.spec b/httpd.spec index 8524400..dd288d8 100644 --- a/httpd.spec +++ b/httpd.spec @@ -7,7 +7,7 @@ Summary: Apache HTTP Server Name: httpd Version: 2.2.13 -Release: 2%{?dist} +Release: 3%{?dist} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz Source1: index.html @@ -349,6 +349,9 @@ if [ $1 = 0 ]; then /sbin/chkconfig --del httpd fi +%posttrans +/sbin/service httpd condrestart >/dev/null 2>&1 || : + %define sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt %define sslkey %{_sysconfdir}/pki/tls/private/localhost.key @@ -481,6 +484,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/httpd/build/*.sh %changelog +* Tue Sep 8 2009 Joe Orton 2.2.13-2 +- restart service in posttrans (#491567) + * Fri Aug 21 2009 Tomas Mraz - 2.2.13-2 - rebuilt with new openssl