Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 503986
Collapse All | Expand All

(-)a/2.2/init/apache2.initd (-2 / +4 lines)
Lines 106-113 stop() { Link Here
106
	${APACHE2} ${APACHE2_OPTS} -k stop
106
	${APACHE2} ${APACHE2_OPTS} -k stop
107
107
108
	local i=0 retval=0
108
	local i=0 retval=0
109
	while ( test -f "${PIDFILE}" && pgrep -P ${PID} apache2 >/dev/null ) \
109
	while [ -f "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ] ; do
110
		&& [ $i -lt ${TIMEOUT} ]; do
110
		while pgrep -P ${PID} apache2 >/dev/null ; do
111
			sleep 1 && i=$(expr $i + 1)
112
		done
111
		sleep 1 && i=$(expr $i + 1)
113
		sleep 1 && i=$(expr $i + 1)
112
	done
114
	done
113
	[ -e "${PIDFILE}" ] && retval=1
115
	[ -e "${PIDFILE}" ] && retval=1

Return to bug 503986