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 6CB40DE33 for ; Wed, 12 Dec 2012 13:59:32 +0000 (UTC) Received: (qmail 25449 invoked by uid 500); 12 Dec 2012 13:59:31 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25316 invoked by uid 500); 12 Dec 2012 13:59:30 -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 25255 invoked by uid 99); 12 Dec 2012 13:59:28 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 13:59:28 +0000 Received: from localhost (HELO mail-vc0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2012 13:59:28 +0000 Received: by mail-vc0-f180.google.com with SMTP id p16so740190vcq.11 for ; Wed, 12 Dec 2012 05:59:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.97.136 with SMTP id ea8mr479275vdb.17.1355320767264; Wed, 12 Dec 2012 05:59:27 -0800 (PST) Received: by 10.52.68.209 with HTTP; Wed, 12 Dec 2012 05:59:27 -0800 (PST) In-Reply-To: <50C887E0.10201@yagni.com> References: <50C887E0.10201@yagni.com> Date: Wed, 12 Dec 2012 13:59:27 +0000 Message-ID: Subject: Re: Running couchdb remotely (from an interactive shell) From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 CouchDB includes a script to launch it as a daemon, a standard init.d script. I'm confused why you'd ssh to a machine, run couchdb in the foreground, and log off. On 12 December 2012 13:34, Wayne Conrad wrote: > On 12/11/2012 11:53 AM, Nestor Urquiza wrote: >> As other users have asked in the past to this list couchdb will not >> run from a remote interactive shell but rather it will be killed when >> the ssh session terminates. The command nohup can help with that. Here >> is what I did (which works OK): > > Terminal multiplexors like screen and tmux are very good for "I want to > start a non-daemon, disconnect, and come back later to see what happened." > > Here's how it works with screen: > > log on > $ screen > $ (enter log running command) > type control-a d to detach the screen session > log off > > later... > > log into the remote system > $ screen -r > > and you'll be back in your long running program's term, including any output > the program printed while you were gone. > > Best Regards, > Wayne Conrad