aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid/squid.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-01-09 13:37:26 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-01-09 13:37:26 +0000
commit8eda4358b30ca355395f23566c568dac920bf2f3 (patch)
tree114c47b886de2cab9e3817a204ee7ddf67a23573 /packages/squid/squid.inc
parentf0840732be28dd30565f11be4ff96b8f6c219b85 (diff)
downloadpfsense-packages-8eda4358b30ca355395f23566c568dac920bf2f3.tar.gz
pfsense-packages-8eda4358b30ca355395f23566c568dac920bf2f3.tar.bz2
pfsense-packages-8eda4358b30ca355395f23566c568dac920bf2f3.zip
Bump Squid version.
hoping to silence the double startup error.
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r--packages/squid/squid.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index f531b286..f2ce1a3c 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -42,7 +42,6 @@ define('SQUID_PASSWD', '/var/etc/squid.passwd');
$valid_acls = array();
-
function squid_get_real_interface_address($iface) {
global $config;
@@ -139,16 +138,13 @@ EOD;
log_error("Stopping any running proxy monitors");
mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | grep -v \"php\" | awk '{ print $2 }' | xargs kill");
sleep(1);
- /* restart proxy alarm scripts */
- log_error("Starting a proxy monitor script");
- mwexec_bg("/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');
squid_dash_z();
- if (!is_service_running('squid')) {
+ if (!isset(is_service_running('squid'))) {
log_error("Starting Squid");
mwexec_bg("/usr/local/sbin/squid -D");
} else {
@@ -156,6 +152,10 @@ EOD;
mwexec("/usr/local/sbin/squid -k reconfigure");
}
+ /* restart proxy alarm scripts */
+ log_error("Starting a proxy monitor script");
+ mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh");
+
filter_configure();
}