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

(-)squid.initd (-1 / +2 lines)
Lines 95-101 stop() { Link Here
95
		if [ -f /var/run/${SVCNAME}.pid ] ; then
95
		if [ -f /var/run/${SVCNAME}.pid ] ; then
96
			einfon "Waiting for squid to shutdown ."
96
			einfon "Waiting for squid to shutdown ."
97
			cnt=0
97
			cnt=0
98
			while [ -f /var/run/${SVCNAME}.pid ] ; do
98
			while pid=`cat /var/run/${SVCNAME}.pid 2>/dev/null` &&
99
			    [ -n "$pid" ] && [ -d "/proc/$pid" ] ; do
99
				cnt=$(expr $cnt + 1)
100
				cnt=$(expr $cnt + 1)
100
				if [ $cnt -gt 60 ] ; then
101
				if [ $cnt -gt 60 ] ; then
101
					# Waited 120 seconds now. Fail.
102
					# Waited 120 seconds now. Fail.

Return to bug 358447