couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-2220) "/usr/bin/couchdb -b" doesn't close stdout / stderr
Date Mon, 21 Apr 2014 05:32:18 GMT


ASF subversion and git services commented on COUCHDB-2220:

Commit e348d4f2da082cee52d11efc6fbc94f1d8a047c9 in couchdb's branch refs/heads/master from
[;h=e348d4f ]

When backgrounding couchdb, close stdout/stderr


> "/usr/bin/couchdb -b" doesn't close stdout / stderr
> ---------------------------------------------------
>                 Key: COUCHDB-2220
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Shish
>            Assignee: Joan Touzet
>             Fix For: 1.7.0
> "/usr/bin/couchdb -b" launches a copy of itself in the background, but leaves stdout
and stderr for the subprocess attached to the controlling terminal in the foreground
> This makes salt hang when launching couchdb, because it tries to read the output of "/etc/init.d/couchdb
restart" - despite the fact that that init script itself has returned, the children (ie, the
daemon) are still holding the console file descriptors open
> I *suspect* that this is also the cause of this issue -->
> If you have salt-minion 2014.1.0 installed, try stopping couchdb and then starting it
up with:
> salt-call 'su couchdb -c "/usr/bin/couchdb -b -o /tmp/couchdb.stdout -e /tmp/couchdb.stderr"'
> Originally reported as a bug in salt, but it seems that couchdb is the part with the
non-standard behaviour

This message was sent by Atlassian JIRA

View raw message