summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <wohali@apache.org>2014-04-21 01:30:01 -0400
committerJoan Touzet <wohali@apache.org>2014-04-21 01:30:01 -0400
commite348d4f2da082cee52d11efc6fbc94f1d8a047c9 (patch)
treed1d26315c7501d693345db506cdcb910902038e8
parentfdb2188afa4ed6b9b9aac1e4d3a989e73f0454ce (diff)
downloadcouchdb-e348d4f2da082cee52d11efc6fbc94f1d8a047c9.tar.gz
When backgrounding couchdb, close stdout/stderr
COUCHDB-2220 COUCHDB-1669
-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