From 1e10ea594897ba3cd6c72ae5f5a83e8bbc2880dc Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 30 Sep 2015 09:58:26 +0200 Subject: Force Squid shutdown on stopping service --- config/squid3/34/squid.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index 6fb6140f..d75c813b 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -2442,6 +2442,9 @@ EOD; {$squid_base}/sbin/squid -k shutdown -f {$squid_conffile_var} # Just to be sure... sleep 5 +if [ -n "`/bin/ps auxw | /usr/bin/grep "[s]quid " | /usr/bin/awk '{print $2}'`" ]; then + {$squid_base}/sbin/squid -k kill -f {$squid_conffile_var} +fi if [ -x /usr/bin/ipcs ]; then # http://man.chinaunix.net/newsoft/squid/Squid_FAQ/FAQ-22.html#ss22.8 -- cgit v1.2.3