aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/squid.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index 563620e9..37cb2395 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -654,6 +654,11 @@ function squid_resync() {
exec("/usr/local/sbin/squid -z");
}
+ /* kill any running proxy alarm scripts */
+ mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | grep -v \"php\" | awk '{ print $2 }' | xargs kill");
+ /* restart proxy alarm scripts */
+ mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh");
+
restart_service('squid');
filter_configure();