aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-30 01:27:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-30 01:27:57 +0000
commitd16980667f598ba0446426b43e420129bc257e13 (patch)
tree1242acd517a1d1437d6a487b1ef25a8305b8cc7f
parentf885a1564f0fabd6b0603396b4f8bb30be9cabab (diff)
downloadpfsense-packages-d16980667f598ba0446426b43e420129bc257e13.tar.gz
pfsense-packages-d16980667f598ba0446426b43e420129bc257e13.tar.bz2
pfsense-packages-d16980667f598ba0446426b43e420129bc257e13.zip
Start proxy_monitor service on initial installation.
-rw-r--r--packages/squid.inc5
1 files changed, 5 insertions, 0 deletions
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');