#!/usr/bin/bash

clean_exit() {
  kill -TERM $child 2>/dev/null
}

trap clean_exit EXIT

/opt/couchdb/bin/couchdb "$@" &
child=$!

wait $child
