diff options
author | sullrich <sullrich@pfsense.org> | 2009-12-16 11:42:16 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-12-16 11:42:16 -0500 |
commit | 0b12f4f08575f6e5a2c791170332cf788d3e2a0e (patch) | |
tree | 6b58c96c6b95748e18fc9671fba88dcd33633ceb /config/haproxy/haproxy.inc | |
parent | 6953fe31431d6dd8a527e082b2608716953cc5b5 (diff) | |
download | pfsense-packages-0b12f4f08575f6e5a2c791170332cf788d3e2a0e.tar.gz pfsense-packages-0b12f4f08575f6e5a2c791170332cf788d3e2a0e.tar.bz2 pfsense-packages-0b12f4f08575f6e5a2c791170332cf788d3e2a0e.zip |
Add remote syslog option
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r-- | config/haproxy/haproxy.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 0890dbc7..769f007f 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -109,7 +109,10 @@ function haproxy_configure() { if(is_array($a_global)) { fwrite ($fd, "global\n"); fwrite ($fd, "\tmaxconn\t\t\t".$a_global['maxconn']."\n"); - fwrite ($fd, "\tlog\t\t\t127.0.0.1 local0\n"); + if($a_global['remotesyslog']) + fwrite ($fd, "\tlog\t\t\t{$a_global['remotesyslog']}\n"); + else + fwrite ($fd, "\tlog\t\t\tglobal\n"); fwrite ($fd, "\tuid\t\t\t80\n"); fwrite ($fd, "\tgid\t\t\t80\n"); $numprocs = trim(`/sbin/sysctl kern.smp.cpus | cut -d" " -f2`); |