diff options
| author | jorton <jorton@fedoraproject.org> | 2009-01-22 14:49:56 +0000 |
|---|---|---|
| committer | jorton <jorton@fedoraproject.org> | 2009-01-22 14:49:56 +0000 |
| commit | f47f283dc00838992814aa4511cfaf8bf4b3ee6c (patch) | |
| tree | e5b08145b889d5dee15ad19ebe9bc375c83001d6 | |
| parent | 8ba10d875d134f85d4e18230a3e4c12f575c0d83 (diff) | |
| download | httpd-f47f283dc00838992814aa4511cfaf8bf4b3ee6c.tar.gz httpd-f47f283dc00838992814aa4511cfaf8bf4b3ee6c.tar.xz httpd-f47f283dc00838992814aa4511cfaf8bf4b3ee6c.zip | |
- Require: apr-util-ldap (#471898)httpd-2_2_11-6
- init script changes: pass pidfile to status(), use status() in
condrestart (#480602), support try-restart as alias for condrestart
- change /etc/httpd/run symlink to have destination /var/run/httpd, and
restore "run/httpd.conf" as default PidFile (#478688)
| -rw-r--r-- | httpd.conf | 2 | ||||
| -rwxr-xr-x | httpd.init | 6 | ||||
| -rw-r--r-- | httpd.spec | 14 |
3 files changed, 15 insertions, 7 deletions
@@ -60,7 +60,7 @@ ServerRoot "/etc/httpd" # PidFile: The file in which the server should record its process # identification number when it starts. # -PidFile run/httpd/httpd.pid +PidFile run/httpd.pid # # Timeout: The number of seconds before receives and sends time out. @@ -91,15 +91,15 @@ case "$1" in stop ;; status) - status $httpd + status -p ${pidfile} $httpd RETVAL=$? ;; restart) stop start ;; - condrestart) - if [ -f ${pidfile} ] ; then + condrestart|try-restart) + if status -p ${pidfile} $httpd >&/dev/null; then stop start fi @@ -7,7 +7,7 @@ Summary: Apache HTTP Server Name: httpd Version: 2.2.11 -Release: 5 +Release: 6 URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz Source1: index.html @@ -54,7 +54,7 @@ Provides: httpd-mmn = %{mmn} Obsoletes: apache, secureweb, mod_dav, mod_gzip, stronghold-apache Obsoletes: stronghold-htdocs, mod_put, mod_roaming Conflicts: pcre < 4.0 -Requires: httpd-tools = %{version}-%{release} +Requires: httpd-tools = %{version}-%{release}, apr-util-ldap %description The Apache HTTP Server is a powerful, efficient, and extensible @@ -288,7 +288,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/httpd # symlinks for /etc/httpd ln -s ../..%{_localstatedir}/log/httpd $RPM_BUILD_ROOT/etc/httpd/logs -ln -s ../..%{_localstatedir}/run $RPM_BUILD_ROOT/etc/httpd/run +ln -s ../..%{_localstatedir}/run/httpd $RPM_BUILD_ROOT/etc/httpd/run ln -s ../..%{_libdir}/httpd/modules $RPM_BUILD_ROOT/etc/httpd/modules # install SYSV init stuff @@ -482,6 +482,14 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/httpd/build/*.sh %changelog +* Thu Jan 22 2009 Joe Orton <jorton@redhat.com> 2.2.11-6 +- Require: apr-util-ldap (#471898) +- init script changes: pass pidfile to status(), use status() in + condrestart (#480602), support try-restart as alias for + condrestart +- change /etc/httpd/run symlink to have destination /var/run/httpd, + and restore "run/httpd.conf" as default PidFile (#478688) + * Fri Jan 16 2009 Tomas Mraz <tmraz@redhat.com> 2.2.11-5 - rebuild with new openssl |
