aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index 52afba14..91c4dc66 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -740,12 +740,13 @@ function squid_resync() {
}
if(!is_dir($disk_cache_location.'01/')) {
log_error($disk_cache_location." does not exist. Creating.");
- exec("/usr/local/sbin/squid -z");
+ mwexec("/usr/local/sbin/squid -z");
}
if (!is_service_running('squid')) {
log_error("Starting Squid");
+ mwexec("/usr/local/sbin/squid -z");
mwexec_bg("/usr/local/sbin/squid -D");
mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh");
} else {