diff options
Diffstat (limited to 'config/squid3/33/squid.inc')
-rwxr-xr-x | config/squid3/33/squid.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/squid3/33/squid.inc b/config/squid3/33/squid.inc index 75806a00..e6312d91 100755 --- a/config/squid3/33/squid.inc +++ b/config/squid3/33/squid.inc @@ -2271,6 +2271,12 @@ EOD; {$squid_local_base}/sbin/squid -k shutdown -f {$squid_conffile_var} # Just to be sure... sleep 5 + +if [ -f /usr/bin/ipcs ];then +# http://man.chinaunix.net/newsoft/squid/Squid_FAQ/FAQ-22.html#ss22.8 +ipcs | grep '^[mq]' | awk '{printf "ipcrm -%s %s\\n", $1, $2}' | /bin/sh +fi + killall -9 squid 2>/dev/null killall pinger 2>/dev/null |