From 7049b3d6df1d43a3ee3de79acaf42d2a3728ea50 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 1 Aug 2006 21:14:52 +0000 Subject: Start proxy_monitor.sh after sync --- packages/squid.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') 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(); -- cgit v1.2.3