Skip to content

Commit

Permalink
When backgrounding couchdb, close stdout/stderr
Browse files Browse the repository at this point in the history
COUCHDB-2220
COUCHDB-1669
  • Loading branch information
wohali committed Apr 21, 2014
1 parent fdb2188 commit e348d4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/couchdb.tpl.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e348d4f

Please sign in to comment.