Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 96101 invoked from network); 9 Mar 2009 17:11:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 17:11:15 -0000 Received: (qmail 15041 invoked by uid 500); 9 Mar 2009 17:11:13 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 15009 invoked by uid 500); 9 Mar 2009 17:11:13 -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 14998 invoked by uid 99); 9 Mar 2009 17:11:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 10:11:13 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 17:11:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7CB4B234C003 for ; Mon, 9 Mar 2009 10:10:50 -0700 (PDT) Message-ID: <1478842645.1236618650496.JavaMail.jira@brutus> Date: Mon, 9 Mar 2009 10:10:50 -0700 (PDT) From: "Florian Ebeling (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-278) bin/couchdb does not honour -o and -e when running in foreground / without -d (matters on macosx) In-Reply-To: <1736850390.1236124136393.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Florian Ebeling updated COUCHDB-278: ------------------------------------ Attachment: patch-plist_redirects_to_devnull.diff This patch changes the macosx launchd plist to write to stdout and stderr to /dev/null. So I lied in the original description. > bin/couchdb does not honour -o and -e when running in foreground / without -d (matters on macosx) > ------------------------------------------------------------------------------------------------- > > Key: COUCHDB-278 > URL: https://issues.apache.org/jira/browse/COUCHDB-278 > Project: CouchDB > Issue Type: Bug > Components: Build System, Database Core > Environment: any *nix > Reporter: Florian Ebeling > Assignee: Noah Slater > Fix For: 0.9 > > Attachments: COUCHDB-278.diff, patch-plist_redirects_to_devnull.diff > > > When couchdb is running in foreground, then the option flags -o and -e are not honoured. This probably quite ok on most systems because foregroud there equals roughly to development mode. On the mac this is different, because fork and daemoinze calls are deprecated, services are managed using launchd, and launchd watches these processes directly. It depends on these processes not (double-)forking and intentionally dying. > So in the current state of things the provided plist starts couchdb, quite consequentially does not use -o/e and. That works, but has the effect that couchdb writes to stdout, which launchd apparently forwards to syslog. So the syslog ends up being hogged by access-log level messages. And it is not possible to avoid that by simply editing the quasi config file .plist. > I will attach a patch which changes bin/couchdb, .plist, and etc/Makefile.am to make this work more like I reckon it should. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.