From 91ee8d699eff4dc2568c83e5ced9e091093f5c44 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 30 Jul 2006 01:32:40 +0000 Subject: Restart proxy monitor script on resync --- packages/squid.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/squid.inc b/packages/squid.inc index 3ed40421..4ed7a286 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -334,6 +334,11 @@ EOD; $valid_acls[] = 'localnet'; } + /* kill any running proxy alarm scripts */ + mwexec("ps awux | grep \"proxy_monitor\" | awk '{ print $6 }' | xargs kill"); + /* restart proxy alarm scripts */ + mwexec("/usr/local/etc/rc.d/proxy_monitor.sh"); + return $conf; } -- cgit v1.2.3