diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-06 04:59:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-06 04:59:14 +0000 |
commit | 831cebe5f3cf2b48df61d60a3505c74293b7c489 (patch) | |
tree | 3841e2c83afd37562c03bd3fc62e5ffc0018e551 /etc/inc | |
parent | 4116de68df5ea050848bf774405a09361d37f12f (diff) | |
download | pfsense-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.inc | 10 |
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(); |