diff options
author | Joan Touzet <wohali@apache.org> | 2014-04-21 01:30:01 -0400 |
---|---|---|
committer | Joan Touzet <wohali@apache.org> | 2014-05-04 14:11:02 -0400 |
commit | d0c712f892fdbab34496359f3eec7e3291110409 (patch) | |
tree | f0a59045ae7610c37c7528c85c381cf7f17a16ee | |
parent | eef869330b0203fc262e9eff3e86e1d8dc521228 (diff) | |
download | couchdb-d0c712f892fdbab34496359f3eec7e3291110409.tar.gz |
When backgrounding couchdb, close stdout/stderr
COUCHDB-2220
COUCHDB-1669
-rw-r--r-- | bin/couchdb.tpl.in | 3 |
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 |