summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-06 04:59:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-06 04:59:14 +0000
commit831cebe5f3cf2b48df61d60a3505c74293b7c489 (patch)
tree3841e2c83afd37562c03bd3fc62e5ffc0018e551 /etc/inc
parent4116de68df5ea050848bf774405a09361d37f12f (diff)
downloadpfsense-831cebe5f3cf2b48df61d60a3505c74293b7c489.zip
pfsense-831cebe5f3cf2b48df61d60a3505c74293b7c489.tar.gz
If Squid is installed but not running after bootup, log a error alerting of this info
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 50e4420..c1e95e0 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -796,9 +796,15 @@ EOD;
}
}
- if (is_package_installed("squid") == 1)
- if(is_process_running("squid"))
+ if (is_package_installed("squid") == 1) {
+ if(is_process_running("squid")) {
$natrules .= "rdr on {$lanif} inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n";
+ } else {
+ if($g['booting'] == false) {
+ log_error("SQUID is installed but failed to start. Not installing redirector rule.");
+ }
+ }
+ }
$natrules .= process_carp_nat_rules();
OpenPOWER on IntegriCloud