Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 11258 invoked from network); 11 Nov 2009 16:19:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Nov 2009 16:19:42 -0000 Received: (qmail 58763 invoked by uid 500); 11 Nov 2009 16:19:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58680 invoked by uid 500); 11 Nov 2009 16:19:40 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 58670 invoked by uid 99); 11 Nov 2009 16:19:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 16:19:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 16:19:32 +0000 Received: by yxe6 with SMTP id 6so1160350yxe.13 for ; Wed, 11 Nov 2009 08:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=vQ9P39MdNYeC0hiLlqIlI28cs10ILcjguIbWIIR/IE8=; b=hCttiduOBE40E00FkcBTFnw/HVfNQm55fJskD/j2yP2maY2O9jvZF8mB7Q04AS1FPQ Gd89ALx0Ag+wEtaCu5X4v0PmPW+XufOxjpraazBWcEo4NGJDEVz849KpE8WJbaUNcTrn mb3Fwhn8WbwcjVmt1Gr31JET6CillEfBLc/Yk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=J9+rpPgG+VyRIV31kZnBhDgoVDfpPydzE63UqI8HVYS3NNClDX8OTJNrHJNVRRHNI+ Qd9zjKF8RNKjkLatgbfW4AxGyOm55zPrsk0gMTNljgPf26n63kiYbksXBIuemEOyg7Ge ETKNY6lQnsDVqO22EXhpvUpXIAB/puKyOLw3w= MIME-Version: 1.0 Received: by 10.100.235.38 with SMTP id i38mr1610302anh.51.1257956351179; Wed, 11 Nov 2009 08:19:11 -0800 (PST) In-Reply-To: References: <21bd5bb90911110307q55b595d6s5abe431be67f4a65@mail.gmail.com> <37CB4B9E-717F-4A14-BCBA-356532304BAA@tumbolia.org> From: Paul Davis Date: Wed, 11 Nov 2009 11:18:51 -0500 Message-ID: Subject: Re: /etc/init.d/couchdb stop never really stops the db To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Can you make sure and kill the existing beam processes and rerunning this? On Wed, Nov 11, 2009 at 10:37 AM, Robert Campbell wrote: > Hi Noah, here is the result of running "couchdb -d" after the change: > > rrc@default:/usr/bin$ ps -A | grep couchdb > =A04389 ? =A0 =A0 =A0 =A000:00:00 couchdb > =A04419 ? =A0 =A0 =A0 =A000:00:00 couchdb > =A06399 ? =A0 =A0 =A0 =A000:00:07 couchdb > rrc@default:/usr/bin$ couchdb -d > + BACKGROUND=3Dfalse > + DEFAULT_CONFIG_DIR=3D/etc/couchdb/default.d > + DEFAULT_CONFIG_FILE=3D/etc/couchdb/default.ini > + HEART_BEAT_TIMEOUT=3D11 > + HEART_COMMAND=3D/usr/bin/couchdb -k > + INTERACTIVE=3Dfalse > + KILL=3Dfalse > + LOCAL_CONFIG_DIR=3D/etc/couchdb/local.d > + LOCAL_CONFIG_FILE=3D/etc/couchdb/local.ini > + PID_FILE=3D/var/run/couchdb/couchdb.pid > + RECURSED=3Dfalse > + RESET_CONFIG=3Dtrue > + RESPAWN_TIMEOUT=3D0 > + SCRIPT_ERROR=3D1 > + SCRIPT_OK=3D0 > + SHUTDOWN=3Dfalse > + STDERR_FILE=3Dcouchdb.stderr > + STDOUT_FILE=3Dcouchdb.stdout > + print_arguments=3D > + start_arguments=3D > + background_start_arguments=3D > + xulrunner-1.9.1 --gre-version > + LD_LIBRARY_PATH=3D:/usr/lib/xulrunner-1.9.1.4/ > + export LD_LIBRARY_PATH > + basename /usr/bin/couchdb > + basename=3Dcouchdb > + parse_script_option_list -d > + _load_config > + _add_config_file /etc/couchdb/default.ini > + test -n > + test -z > + print_arguments=3D/etc/couchdb/default.ini > + start_arguments=3D \"/etc/couchdb/default.ini\" > + background_start_arguments=3D -a \"/etc/couchdb/default.ini\" > + _add_config_dir /etc/couchdb/default.d > + find /etc/couchdb/default.d -mindepth 1 -maxdepth 1 -type f > + _add_config_file /etc/couchdb/local.ini > + test -n =A0\"/etc/couchdb/default.ini\" > + start_arguments=3D \"/etc/couchdb/default.ini\", > + test -z /etc/couchdb/default.ini > + cat > + print_arguments=3D/etc/couchdb/default.ini > /etc/couchdb/local.ini > + start_arguments=3D \"/etc/couchdb/default.ini\", =A0\"/etc/couchdb/loca= l.ini\" > + background_start_arguments=3D -a \"/etc/couchdb/default.ini\" -a > \"/etc/couchdb/local.ini\" > + _add_config_dir /etc/couchdb/local.d > + find /etc/couchdb/local.d -mindepth 1 -maxdepth 1 -type f > + set +e > + getopt hVa:A:ncibp:r:Ro:e:skd -d > + options=3D -d -- > + test ! 0 -eq 0 > + set -e > + eval set -- -d -- > + set -- -d -- > + [ 2 -gt 0 ] > + shift > + SHUTDOWN=3Dtrue > + [ 1 -gt 0 ] > + shift > + break > + test false =3D true -o true =3D true > + stop_couchdb false > + _get_pid > + test -f /var/run/couchdb/couchdb.pid > + cat /var/run/couchdb/couchdb.pid > + PID=3D367 > + echo 367 > + PID=3D367 > + test -n 367 > + test false =3D false > /usr/bin/couchdb: 1: cannot create /var/run/couchdb/couchdb.pid: > Permission denied > + echo > rrc@default:/usr/bin$ ps -A | grep couchdb > =A04389 ? =A0 =A0 =A0 =A000:00:00 couchdb > =A04419 ? =A0 =A0 =A0 =A000:00:00 couchdb > =A06399 ? =A0 =A0 =A0 =A000:00:07 couchdb > rrc@default:/usr/bin$ curl -X GET localhost:5984 > {"couchdb":"Welcome","version":"0.10.0"} > rrc@default:/usr/bin$ > > > > On Wed, Nov 11, 2009 at 4:31 PM, Noah Slater wrote= : >> >> On 11 Nov 2009, at 11:54, Robert Campbell wrote: >> >>> Sorry, I screwed that up. I saw the d as b for some reason. Here's the >>> results from -d: >>> >>> root@default:~# ps -A | grep couchdb >>> 4389 ? =A0 =A0 =A0 =A000:00:00 couchdb >>> 4419 ? =A0 =A0 =A0 =A000:00:00 couchdb >>> 6399 ? =A0 =A0 =A0 =A000:00:05 couchdb >>> root@default:~# couchdb -d >>> root@default:~# ps -A | grep couchdb >>> 4389 ? =A0 =A0 =A0 =A000:00:00 couchdb >>> 4419 ? =A0 =A0 =A0 =A000:00:00 couchdb >>> 6399 ? =A0 =A0 =A0 =A000:00:05 couchdb >>> root@default:~# curl -X GET localhost:5984 >>> {"couchdb":"Welcome","version":"0.10.0"} >>> root@default:~# >>> >>> So basically it doesn't seem to do anything. The processes are still >>> running and the couchdb server is still responding to requests. >> >> Please change the top of your /usr/bin/couchdb script to look like: >> >> =A0 =A0 =A0 =A0#!/bin/sh -ex >> >> And then try this again, pasting all the output. >> >> >