summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/couchdb.tpl.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in
index 538ebcbce..f2027f1ec 100644
--- a/bin/couchdb.tpl.in
+++ b/bin/couchdb.tpl.in
@@ -270,6 +270,9 @@ start_couchdb () {
echo "Apache CouchDB has started, time to relax."
else
if test "$RECURSED" = "true"; then
+ # close stdout / stderr
+ exec 1>&-
+ exec 2>&-
while true; do
export HEART_COMMAND
export HEART_BEAT_TIMEOUT