Lines 86-91
Link Here
|
86 |
stop() { |
86 |
stop() { |
87 |
ebegin "Stopping ${RC_SVCNAME} with /usr/sbin/squid -k shutdown -f /etc/squid/${RC_SVCNAME}.conf -n ${SQUID_SVCNAME}" |
87 |
ebegin "Stopping ${RC_SVCNAME} with /usr/sbin/squid -k shutdown -f /etc/squid/${RC_SVCNAME}.conf -n ${SQUID_SVCNAME}" |
88 |
if /usr/sbin/squid -k shutdown -f /etc/squid/${RC_SVCNAME}.conf -n ${SQUID_SVCNAME} ; then |
88 |
if /usr/sbin/squid -k shutdown -f /etc/squid/${RC_SVCNAME}.conf -n ${SQUID_SVCNAME} ; then |
|
|
89 |
if [ "x${SQUID_FAST_SHUTDOWN}" = "xyes" ]; then |
90 |
einfo "Attempting fast shutdown." |
91 |
/usr/sbin/squid -k shutdown -f /etc/squid/${RC_SVCNAME}.conf -n ${SQUID_SVCNAME} |
92 |
fi |
89 |
# Now we have to wait until squid has _really_ stopped. |
93 |
# Now we have to wait until squid has _really_ stopped. |
90 |
sleep 1 |
94 |
sleep 1 |
91 |
if [ -f /run/${RC_SVCNAME}.pid ] ; then |
95 |
if [ -f /run/${RC_SVCNAME}.pid ] ; then |