No title Revision 336465363433 (Sun Aug 23 2009 at 15:40) - Diff Link to this snippet: https://friendpaste.com/5d1cbZglgi42AASqGg6dCg Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920212223242526272829303132333435#!/bin/sh -ex# cd into couchdb directory, run ./launch-multi-couch.sh N from thereN=$1if [ -z "$N" ]; then echo "usage: ./launch-multi-couch.sh N" exit 1fisetup_couchdb(){ N=$1 COUCHPATH="/tmp/couch$N" ./configure --prefix=$COUCHPATH make -j4 make install $COUCHPATH/bin/couchdb -b sleep 1 PORT=`expr 5984 + $N` curl -vX PUT http://127.0.0.1:5984/_config/httpd/port -d "\"$PORT\""}while([ $N -gt 0 ]); do echo "Do CouchDB N=$N" setup_couchdb $N N=`expr $N - 1`doneecho "Done"# Done