Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 82864 invoked from network); 11 Sep 2008 16:09:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 16:09:19 -0000 Received: (qmail 41076 invoked by uid 500); 11 Sep 2008 16:09:16 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 41024 invoked by uid 500); 11 Sep 2008 16:09:16 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 41013 invoked by uid 99); 11 Sep 2008 16:09:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 09:09:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of googuy@gmail.com designates 209.85.217.19 as permitted sender) Received: from [209.85.217.19] (HELO mail-gx0-f19.google.com) (209.85.217.19) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 16:08:18 +0000 Received: by gxk12 with SMTP id 12so9857966gxk.12 for ; Thu, 11 Sep 2008 09:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=TnFXkPm/tayMmt3pmW1tYyJm7uvJhcVvymkKIBeWipk=; b=AGeEt0umsR1xRbUxw5abnIpqaoFdV04uHehwPEKbJwrVkUYaA2/ftB84sb8J5ZZ/rK OS4GuXE0VpCT+SljokTk7TLuu/sIrHPMX+N/gWPUPWGZO6MM9OjzbZKAfbMXn9kOFfvA zfr7jVFGRJ16K+6oTlvs/pvxBYCrGyQJMxE/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=sdkE667Kd7+2t+YW3QpVtY7zGhiwMK99H2hALTBu4NRYg54xv0Gewkz4NDSseCKxAm QL/3in2F/+/z0GqGQiqcBhRVIAc7iCN8Pw8zR9xKkQJrrHmysEvvVScvl/xsX+z+xrRK 2sKnafQev1Qw7exfeYq53/rXtRY3tX0C7+KEk= Received: by 10.150.137.8 with SMTP id k8mr4288581ybd.113.1221149269176; Thu, 11 Sep 2008 09:07:49 -0700 (PDT) Received: by 10.151.100.21 with HTTP; Thu, 11 Sep 2008 09:07:49 -0700 (PDT) Message-ID: <3b3520550809110907n6131292cv9936162bcabf382@mail.gmail.com> Date: Thu, 11 Sep 2008 18:07:49 +0200 From: "=?ISO-8859-1?Q?Vicente_Jim=E9nez?=" To: couchdb-dev@incubator.apache.org Subject: Problem with status (-s) option in /usr/bin/couchdb Cc: "Lars Strojny" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26433_25774218.1221149269161" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26433_25774218.1221149269161 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline After reading a bit of /usr/bin/couchdb: Due to how /usr/bin/couchdb reads arguments, option -p needs to be put before -s because when the -s option is read, the script check status and exit without reading more options. So if we use a PID file other than the default /var/run/couchdb.pid the script always displays "Apache CouchDB is not running." Replace in /etc/init.d/couchdb (or in the template file): display_status () { # Display the status of the running Apache CouchDB process. $COUCHDB -s } by display_status () { # Display the status of the running Apache CouchDB process. if test -n "$COUCHDB_PID_FILE"; then # WARNING: due to how $COUCHDB reads arguments, # option -p needs to be put before -s because when the -s option is read, # the script check status and exit without reading more options. # So if we use a PID file other than the default /var/run/couchdb.pid # the script always displays "Apache CouchDB is not running." $COUCHDB -p $COUCHDB_PID_FILE -s else $COUCHDB -s fi } or try to fix this in /usr/bin/couchdb ------=_Part_26433_25774218.1221149269161--