diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2006-12-20 19:11:21 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2006-12-20 19:11:21 +0000 |
commit | ad7f26fe58d813feab7ba7001abf32d86249b42c (patch) | |
tree | da7fd91f73075b67262d6ff77e04b07300ad62c8 | |
parent | 9b90c201b9c07820e7e3afcbca5f665eba2bb74d (diff) | |
download | pfsense-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.
-rw-r--r-- | packages/squid/squid.inc | 3 |
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"); } |