couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <>
Subject Re: init.d/couchdb
Date Mon, 23 May 2011 16:14:56 GMT
Hang on a second!

The most clean and consistent approach is to entirely rewrite the init script?

Let's figure out why "su" is failing for you first.

Because it's been working for most people, for a few years now. :)

On 23 May 2011, at 17:01, till wrote:

> Hey guys,
> I just re-ran some chef-recipes I had and noticed how CouchDB 1.0.1
> didn't start (/etc/init.d/couchdb) return 1.
> So I updated the recipe to use 1.0.2 and found the same problem.
> After adding 'set -x' to the script, I discovered that the 'su' call
> failed. Has anyone else seen this?
> I replaced both (for start and stop) with sudo -u $COUCHDB_USER
> $command which makes it work, but I reckon sudo is not too portable
> across the different flavours of Linux.
> I think the most clean and consistent approach is start-stop-daemon,
> but I wanted to ask here first before I write a patch.
> Till

View raw message