aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2006-12-20 19:11:21 +0000
committerSeth Mos <seth.mos@xs4all.nl>2006-12-20 19:11:21 +0000
commitad7f26fe58d813feab7ba7001abf32d86249b42c (patch)
treeda7fd91f73075b67262d6ff77e04b07300ad62c8 /packages/squid
parent9b90c201b9c07820e7e3afcbca5f665eba2bb74d (diff)
downloadpfsense-packages-ad7f26fe58d813feab7ba7001abf32d86249b42c.tar.gz
pfsense-packages-ad7f26fe58d813feab7ba7001abf32d86249b42c.tar.bz2
pfsense-packages-ad7f26fe58d813feab7ba7001abf32d86249b42c.zip
Stop squid before trying a squid -z. resync_general will start it back up for us.
Diffstat (limited to 'packages/squid')
-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");
}