You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Tom Chiverton <tc...@extravision.com> on 2015/10/02 11:07:38 UTC

Re: su vs sudo in init script

On 30/09/15 09:27, Robert Newson wrote:
> I strongly advise returning to su but adding a cd call to somewhere 
> couchdb can read. 


I reviewed the init script CouchDb is shipping.

It declares
RUN_DIR=/usr/local/var/run/couchdb
which is where the .pid file lives

But the home dir of the couchdb user is /usr/local/var/lib/couchdb (this 
is where the .couch files are)

There is no 'cd' command in the script.

I think CouchDd would need to add a new variable (for the lib dir) to 
the script, and then be sure to cd to that in run_command().

If that sounds like a plan I'll write up an issue.

Tom

Re: su vs sudo in init script

Posted by Tom Chiverton <tc...@extravision.com>.
On 02/10/15 10:07, Tom Chiverton wrote:
> If that sounds like a plan I'll write up an issue. 

I've written it up at
https://issues.apache.org/jira/browse/COUCHDB-2843
but don't know enough about the installer to get started on a patch.

Tom