aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-30 09:58:26 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-30 09:58:26 +0200
commit1e10ea594897ba3cd6c72ae5f5a83e8bbc2880dc (patch)
treebe7a9b81ffc2e39fea77050ee5f6b94fb5eb1623
parentf387471a2fe21348cd2f34c8b75f113142ded18b (diff)
downloadpfsense-packages-1e10ea594897ba3cd6c72ae5f5a83e8bbc2880dc.tar.gz
pfsense-packages-1e10ea594897ba3cd6c72ae5f5a83e8bbc2880dc.tar.bz2
pfsense-packages-1e10ea594897ba3cd6c72ae5f5a83e8bbc2880dc.zip
Force Squid shutdown on stopping service
-rwxr-xr-xconfig/squid3/34/squid.inc3
1 files changed, 3 insertions, 0 deletions
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