couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [20/27] couchdb commit: updated refs/heads/1843-feature-bigcouch to 465d1ad
Date Mon, 03 Feb 2014 12:59:59 GMT
Make HAProxy command dynamic


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3a56919f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3a56919f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3a56919f

Branch: refs/heads/1843-feature-bigcouch
Commit: 3a56919f5eba832292e1cf37076f4728f635eabd
Parents: 5d7c38e
Author: Russell Branca <chewbranca@gmail.com>
Authored: Mon Dec 23 14:43:27 2013 -0800
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon Feb 3 12:54:10 2014 +0000

----------------------------------------------------------------------
 rel/boot_dev_cluster.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3a56919f/rel/boot_dev_cluster.sh
----------------------------------------------------------------------
diff --git a/rel/boot_dev_cluster.sh b/rel/boot_dev_cluster.sh
index 4559141..a517fd4 100755
--- a/rel/boot_dev_cluster.sh
+++ b/rel/boot_dev_cluster.sh
@@ -3,6 +3,8 @@
 # Make log directory
 mkdir -p ./rel/logs/
 
+HAPROXY=`which haproxy`
+
 # Start each node
 ./rel/dev1/bin/couchdb > ./rel/logs/couchdb1.log 2>&1 &
 DB1_PID=$!
@@ -13,7 +15,7 @@ DB2_PID=$!
 ./rel/dev3/bin/couchdb > ./rel/logs/couchdb3.log 2>&1 &
 DB3_PID=$!
 
-/usr/local/sbin/haproxy -f rel/haproxy.cfg > ./rel/logs/haproxy.log 2>&1 &
+$HAPROXY -f rel/haproxy.cfg > ./rel/logs/haproxy.log 2>&1 &
 HP_PID=$!
 
 sleep 2


Mime
View raw message