Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B331211549 for ; Sun, 4 May 2014 18:13:22 +0000 (UTC) Received: (qmail 1075 invoked by uid 500); 4 May 2014 18:13:15 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 1010 invoked by uid 500); 4 May 2014 18:13:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 999 invoked by uid 99); 4 May 2014 18:13:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 May 2014 18:13:15 +0000 Date: Sun, 4 May 2014 18:13:15 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-2220) "/usr/bin/couchdb -b" doesn't close stdout / stderr MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-2220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13989076#comment-13989076 ] ASF subversion and git services commented on COUCHDB-2220: ---------------------------------------------------------- Commit d0c712f892fdbab34496359f3eec7e3291110409 in couchdb's branch refs/heads/1.6.x from [~wohali] [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=d0c712f ] When backgrounding couchdb, close stdout/stderr COUCHDB-2220 COUCHDB-1669 > "/usr/bin/couchdb -b" doesn't close stdout / stderr > --------------------------------------------------- > > Key: COUCHDB-2220 > URL: https://issues.apache.org/jira/browse/COUCHDB-2220 > 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 --> https://issues.apache.org/jira/browse/COUCHDB-1669 > If you have salt-minion 2014.1.0 installed, try stopping couchdb and then starting it up with: > salt-call cmd.run '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 https://github.com/saltstack/salt/issues/11228 -- This message was sent by Atlassian JIRA (v6.2#6252)