Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29932 | Differences between
and this patch

Collapse All | Expand All

(-)/common/apache (-5 / +4 lines)
Lines 12-21 Link Here
12
}
12
}
13
13
14
start() {
14
start() {
15
	ebegin "Cleaning /tmp/phpa_*"
16
	touch /tmp/phpa_1
17
	find /tmp/ -name 'phpa_*' -print0 | xargs -0 rm
18
	eend $?
19
	ebegin "Starting apache"
15
	ebegin "Starting apache"
20
	env -i PATH=$PATH /sbin/start-stop-daemon -o --quiet \
16
	env -i PATH=$PATH /sbin/start-stop-daemon -o --quiet \
21
		--start --startas /usr/sbin/apache \
17
		--start --startas /usr/sbin/apache \
Lines 27-33 Link Here
27
	ebegin "Stopping apache"
23
	ebegin "Stopping apache"
28
	/usr/sbin/apachectl stop >/dev/null
24
	/usr/sbin/apachectl stop >/dev/null
29
	start-stop-daemon -o --quiet --stop --pidfile /var/run/apache.pid
25
	start-stop-daemon -o --quiet --stop --pidfile /var/run/apache.pid
30
	eend $?
26
        ERROR=$?
27
        while ps -U apache|grep apache >/dev/null ; do sleep 1; ebegin " Waiting for apache to stop"; done
28
	rm /var/run/apache.pid 2>/dev/null
29
	eend $ERROR
31
}
30
}
32
31
33
reload() {
32
reload() {

Return to bug 29932