Supervisord无法在CentOS 5.9上启动CouchDB服务器

我已经安装了CouchDB v1.0.4,我想用Supervisor监视它的进程(安装的版本是2.1.3)。 我可以用以下方式启动CouchDB:

$ /usr/bin/couchdb

我在/etc/supervisord.d有以下基本configuration:

 [program:couchdb] command=/usr/bin/couchdb 

但是,当我开始supervisord它不会按预期启动couchdb/var/log/supervisor/supervisord.log的错误日志只是确认该进程在启动后立即存在:

 2014-09-25 13:34:10,990 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Thu Sep 25 13:34:10 2014 Hostname: <unix domain socket> Port:/var/tmp/supervisor.sock 2014-09-25 13:34:11,024 CRIT Running without any HTTP authentication checking 2014-09-25 13:34:11,024 INFO daemonizing the process 2014-09-25 13:34:11,025 INFO supervisord started with pid 8258 2014-09-25 13:34:11,037 INFO spawned: 'couchdb' with pid 8259 2014-09-25 13:34:11,044 INFO exited: couchdb (exit status 1; not expected) 2014-09-25 13:34:11,044 INFO received SIGCLD indicating a child quit 2014-09-25 13:34:12,051 INFO spawned: 'couchdb' with pid 8269 2014-09-25 13:34:12,274 INFO exited: couchdb (exit status 1; not expected) 2014-09-25 13:34:12,274 INFO received SIGCLD indicating a child quit 2014-09-25 13:34:14,299 INFO spawned: 'couchdb' with pid 8297 2014-09-25 13:34:14,300 INFO exited: couchdb (exit status 1; not expected) 2014-09-25 13:34:14,300 INFO received SIGCLD indicating a child quit 2014-09-25 13:34:18,319 INFO spawned: 'couchdb' with pid 8306 2014-09-25 13:34:18,320 INFO exited: couchdb (exit status 1; not expected) 2014-09-25 13:34:18,320 INFO received SIGCLD indicating a child quit 2014-09-25 13:34:19,320 INFO gave up: couchdb entered FATAL state, too many start retries too quickly 

我真的不知道这是为什么,因为/var/log/couchdb/couch.log中没有logging错误(CouchDB的日志级别设置为debug )。

任何帮助将不胜感激。

您必须在您的supervisordconfiguration中为您的环境$ HOME设置couchdb

environment=HOME=/usr/local/var/lib/couchdb redirect_stderr=true