> +make dev
> +# start CouchDB
> +./utils/run -b -r 1
> +sleep 1 # give it a sec
> +
>  cat $SCRIPT_DIR/json2.js \
>        $SCRIPT_DIR/sha1.js \
>        $SCRIPT_DIR/oauth.js \
> @@ -45,3 +50,6 @@ cat $SCRIPT_DIR/json2.js \
>        $JS_TEST_DIR/couch_http.js \
>        $JS_TEST_DIR/cli_runner.js \
>     | $COUCHJS -H -
> +
> +# stop CouchDB
> +./utils/run -d
>

Before I forget, there's also a nifty trap command thing in case its
killed by a signal. There's an example of its use here:

https://svn.apache.org/repos/infra/infrastructure/trunk/projects/git/bin/update-mirror.sh

Not sure how portable that is, but it seems like something we might
want to look into to be extra sure that the node comes down.

Reply via email to