From d16980667f598ba0446426b43e420129bc257e13 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 30 Jul 2006 01:27:57 +0000 Subject: Start proxy_monitor service on initial installation. --- packages/squid.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages') diff --git a/packages/squid.inc b/packages/squid.inc index b481f0cf..642ff987 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -80,6 +80,11 @@ EOD; squid_chown_recursive($dir, 'proxy', 'proxy'); } + /* 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"); + if (!file_exists(SQUID_CONFBASE . '/mime.conf') && file_exists(SQUID_CONFBASE . '/mime.conf.default')) copy(SQUID_CONFBASE . '/mime.conf.default', SQUID_CONFBASE . '/mime.conf'); -- cgit v1.2.3