You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/03/25 18:15:16 UTC

(couchdb) 01/01: Remove boot_dev_cluster.sh

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch remove-unused-dev-script
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a49185e3c57c4f2472637fd40e9dafcfd74f31f3
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Mon Mar 25 14:13:01 2024 -0400

    Remove boot_dev_cluster.sh
    
    This script is not used anywhere.
    
    We start a dev cluster in dev/run for local development and for tests.
---
 rel/boot_dev_cluster.sh | 40 ----------------------------------------
 1 file changed, 40 deletions(-)

diff --git a/rel/boot_dev_cluster.sh b/rel/boot_dev_cluster.sh
deleted file mode 100755
index 1dfeb5568..000000000
--- a/rel/boot_dev_cluster.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-
-# 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=$!
-
-./rel/dev2/bin/couchdb > ./rel/logs/couchdb2.log 2>&1 &
-DB2_PID=$!
-
-./rel/dev3/bin/couchdb > ./rel/logs/couchdb3.log 2>&1 &
-DB3_PID=$!
-
-$HAPROXY -f rel/haproxy.cfg > ./rel/logs/haproxy.log 2>&1 &
-HP_PID=$!
-
-sleep 2
-
-# Connect the cluster
-curl localhost:15986/nodes/dev2@127.0.0.1 -X PUT -d '{}'
-curl localhost:15986/nodes/dev3@127.0.0.1 -X PUT -d '{}'
-
-trap "kill $DB1_PID $DB2_PID $DB3_PID $HP_PID" SIGINT SIGTERM SIGHUP
-
-wait