- init: use killproc() delay to avoid race killing parent
This commit is contained in:
parent
9cf9a14c75
commit
81d733cda6
@ -65,9 +65,13 @@ start() {
|
||||
[ $RETVAL = 0 ] && touch ${lockfile}
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
# When stopping httpd a delay of >10 second is required before SIGKILLing the
|
||||
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
|
||||
# errant children.
|
||||
stop() {
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc $httpd
|
||||
killproc -d 10 $httpd
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
|
||||
|
@ -7,7 +7,7 @@
|
||||
Summary: Apache HTTP Server
|
||||
Name: httpd
|
||||
Version: 2.2.3
|
||||
Release: 2
|
||||
Release: 3
|
||||
URL: http://httpd.apache.org/
|
||||
Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
|
||||
Source1: index.html
|
||||
@ -49,6 +49,7 @@ BuildRequires: autoconf, perl, pkgconfig, xmlto >= 0.0.11, findutils
|
||||
BuildRequires: db4-devel, expat-devel, zlib-devel, libselinux-devel
|
||||
BuildRequires: apr-devel >= 1.2.0, apr-util-devel >= 1.2.0, pcre-devel >= 5.0,
|
||||
Requires: /etc/mime.types, gawk, /usr/share/magic.mime, /usr/bin/find
|
||||
Requires: initscripts >= 8.36
|
||||
Obsoletes: httpd-suexec
|
||||
Prereq: /sbin/chkconfig, /bin/mktemp, /bin/rm, /bin/mv
|
||||
Prereq: sh-utils, textutils, /usr/sbin/useradd
|
||||
@ -481,6 +482,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/httpd/build/*.sh
|
||||
|
||||
%changelog
|
||||
* Thu Aug 3 2006 Joe Orton <jorton@redhat.com> 2.2.3-3
|
||||
- init: use killproc() delay to avoid race killing parent
|
||||
|
||||
* Fri Jul 28 2006 Joe Orton <jorton@redhat.com> 2.2.3-2
|
||||
- update to 2.2.3
|
||||
- trim %%changelog to >=2.0.52
|
||||
|
Loading…
Reference in New Issue
Block a user