Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 147F9D422 for ; Wed, 12 Dec 2012 15:13:19 +0000 (UTC) Received: (qmail 64315 invoked by uid 500); 12 Dec 2012 15:13:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 64130 invoked by uid 500); 12 Dec 2012 15:13:16 -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 63659 invoked by uid 99); 12 Dec 2012 15:13:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 15:13:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 15:13:09 +0000 Received: by mail-vb0-f52.google.com with SMTP id ez10so833641vbb.11 for ; Wed, 12 Dec 2012 07:12:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=2wY+q8mprggwFzXIAoONZUCecTg+5fh2gRwDMX0eI/w=; b=CFlfX6+nF5hIe4PUj1zTvcNilqmJv2LzJqNNZOmC2BRYIgi2U/IpbibOtLU9vSqp8S AeZOvdwQWC3ZFJGjxzDAVa2T0rrLkjUQWAXTRBFB2RkfuQn3zoWbf7lmHxabCdVoFxyR M/gsvBG4oemKJGEIKziBzhO0lwSt3L545pCgUQ1yKnCiHthCo8qlIe+C/jlUo1O5cm+0 qpgCXDQfkMne3c5xQYnM9mCC6LnbovYZDrjJUKzzTZD9kU15z2rM33Fj/dCgLEPShv4f oJYKlnuTaHjHT9qVFA8IX6tqG09uXbYA7XVFE+Yf7T7Y2uxEM2a/zTycj0jRfFTU09UY c8HQ== MIME-Version: 1.0 Received: by 10.58.239.162 with SMTP id vt2mr702385vec.1.1355325168556; Wed, 12 Dec 2012 07:12:48 -0800 (PST) Received: by 10.58.80.40 with HTTP; Wed, 12 Dec 2012 07:12:48 -0800 (PST) X-Originating-IP: [84.112.19.176] In-Reply-To: References: <50C887E0.10201@yagni.com> Date: Wed, 12 Dec 2012 16:12:48 +0100 Message-ID: Subject: Re: Running couchdb remotely (from an interactive shell) From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnD0OFcTxH+htgw1tNpv+2cTK6TCoUuIjAkdVbB9A3OpgMrFopcLOmJg/vMzTyoX3eTCXow X-Virus-Checked: Checked by ClamAV on apache.org On 12 December 2012 15:51, Nestor Urquiza wrote: > Hi Robert, > > For maintenance purposes you might want to remotely restart couchdb. > For example you remotely install couchdb and after that you remotely > harden it (changing configuration files) which demands a restart. Applying changes via the _config API allows CouchDB to restart only the impacted subsystems. This is more likely to fit your needs. > We prefer to maintain the servers remotely rather than login into them > and manually execute commands. We script the commands for absolutely > everything, from building the whole server to patching it to changing > configuration etc. You can use the _restart API for this without even needing to log on. > With the same recipe we guarantee not relying on memory or going > manually through steps. The steps are in scripts. > > BTW we use Plain Old Bash (POB) recipes with the help of Remoto-IT, a > simple and open source script based on expect and to remotely run > scripts in a server. > > The init.d script as I said will die as it is attached to the console > session if you are running it from ssh. The nohup command can be used > like screen can be used as well (like mentioned in this thread). > > I believe in these days where automation is key, couchdb should > support be run from a remote ssh interactive session. That is what my > change (using nohup) allows. I am wondering if it makes sense to > include the change even if it demands a configure or *.ini option. Hi Nestor, TBH I'm puzzled why launching CouchDB interactively is somehow better compared to using upstart or whatever your preferred OS uses to implement daemons. http://upstart.ubuntu.com/ If there's something the init scripts are not doing today I'd prefer that we address that directly, so all distros can benefit from it. What's missing? A+ Dave