aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/squid/squid.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index fcef86ff..c38ce200 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -84,6 +84,9 @@ function squid_dash_z() {
if(!is_dir($cachedir.'/00/')) {
log_error("Creating squid cache subdirs in $cachedir");
+ mwexec("/usr/local/sbin/squid -k shutdown");
+ sleep(5);
+ mwexec("/usr/local/sbin/squid -k kill");
mwexec("/usr/local/sbin/squid -z");
}