From 3115a6de1c24a9084a1e13dd9b21587a679b21e1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 17 Nov 2009 22:51:08 -0500 Subject: Correct memory usage and simplify output --- config/haproxy/haproxy.inc | 4 +++- config/haproxy/haproxy_backends_edit.php | 1 - config/haproxy/haproxy_global.php | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'config') diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 652d0a63..e3028e4c 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -86,7 +86,7 @@ run_rc_command "\$1" EOD; - $fd = fopen("/usr/local/etc/rc.d/haproxy.sh", "w"); + $fd = fopen("/usr/local/etc/rc.d/haproxy.sh", "W"); fwrite($fd, $haproxy); fclose($fd); exec("chmod a+rx /usr/local/etc/rc.d/haproxy.sh"); @@ -119,6 +119,7 @@ function haproxy_configure() { fwrite ($fd, "\n"); } + // Construct and write out configuration file if(is_array($a_backends)) { foreach ($a_backends as $backend) { @@ -195,6 +196,7 @@ function haproxy_configure() { } fwrite ($fd, "\n"); } + // Sync HAProxy configuration (if enabled) if(isset($config['installedpackages']['haproxy']['enablesync'])) { if($config['installedpackages']['haproxy']['synchost1']) { haproxy_do_xmlrpc_sync($config['installedpackages']['haproxy']['synchost1'], diff --git a/config/haproxy/haproxy_backends_edit.php b/config/haproxy/haproxy_backends_edit.php index 80616dc6..70bfa28f 100755 --- a/config/haproxy/haproxy_backends_edit.php +++ b/config/haproxy/haproxy_backends_edit.php @@ -366,7 +366,6 @@ include("head.inc");

-
diff --git a/config/haproxy/haproxy_global.php b/config/haproxy/haproxy_global.php index 609c4b4e..0dfe6523 100755 --- a/config/haproxy/haproxy_global.php +++ b/config/haproxy/haproxy_global.php @@ -173,19 +173,19 @@ function enable_change(enable_change) { - + - + - + - +
Edit haproxy backend
9993276 Kilobytes1888K
999998032 Kilobytes8032K
99999950016 Kilobytes50016K
9999999467 Megabytes467M
-- cgit v1.2.3