You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Nestor Urquiza (JIRA)" <ji...@apache.org> on 2012/12/12 21:51:22 UTC
[jira] [Created] (COUCHDB-1627) couchdb fails to start when run
remotely (from an interactive shell)
Nestor Urquiza created COUCHDB-1627:
---------------------------------------
Summary: couchdb fails to start when run remotely (from an interactive shell)
Key: COUCHDB-1627
URL: https://issues.apache.org/jira/browse/COUCHDB-1627
Project: CouchDB
Issue Type: Bug
Reporter: Nestor Urquiza
1. Be sure couchdb is not running in a remote machine
2. Issue the below command to the remote machine:
$ ssh -t remoteserver sudo /etc/init.d/couchdb start
3. You will see how the daemon is not started
Now update the script as shown below (using nohup) and repeat 1-2 from above to confirm the daemon is indeed started:
run_command () {
command="$1"
if test -n "$COUCHDB_OPTIONS"; then
command="$command $COUCHDB_OPTIONS"
fi
if test -n "$COUCHDB_USER"; then
if nohup su $COUCHDB_USER -c "$command"; then
return $SCRIPT_OK
else
return $SCRIPT_ERROR
fi
else
if $command; then
return $SCRIPT_OK
else
return $SCRIPT_ERROR
fi
fi
}
I am not recommending to use nohup but to come up with a solution that allows to remotely start couchdb the same way it is started from a logged in session.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira