diff options
author | Joan Touzet <wohali@apache.org> | 2014-04-21 01:30:01 -0400 |
---|---|---|
committer | Joan Touzet <wohali@apache.org> | 2014-04-21 01:30:01 -0400 |
commit | e348d4f2da082cee52d11efc6fbc94f1d8a047c9 (patch) | |
tree | d1d26315c7501d693345db506cdcb910902038e8 /bin | |
parent | fdb2188afa4ed6b9b9aac1e4d3a989e73f0454ce (diff) | |
download | couchdb-e348d4f2da082cee52d11efc6fbc94f1d8a047c9.tar.gz |
When backgrounding couchdb, close stdout/stderr
COUCHDB-2220
COUCHDB-1669
Diffstat (limited to 'bin')
-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 |