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

Reply via email to