No pid file for CouchDB on Ubuntu 14.04

We would like to monitor our CouchDB installation using the standard pid method using MONIT, however, even though couchdb is working fine, there is no pid file in / var / run / couchdb, only couch.uri. The permissions on / var / run / couchdb are good (couch: couch) and the couchdb service stops and starts working fine, although to stop / start MONIT we need the start / stop / etc / init.d / couchdb option (which is not there again) ...

For information, we just installed with apt-get install couchdb on Ubuntu 14.04.

Any advice is appreciated.

Regards

RichBos

+3


source to share


1 answer


I did it with an older version (1.3) of CouchDB installed from source. Please check if this works for you:

check process couchdb with pidfile   
/usr/local/var/run/couchdb/couchdb.pid
  group database
  start program = "/etc/init.d/couchdb start -u couchdb"
  stop  program = "/etc/init.d/couchdb stop -u couchdb"
  if failed host 127.0.0.1 port 5984 then restart
  if cpu is greater than 40% for 2 cycles then alert
  if cpu > 60% for 5 cycles then restart
  if 10 restarts within 10 cycles then timeout

      



If you installed it through your package manager, you will most likely find the pid in /var/run/couchdb/couchdb.pid

The location of the pid file has not changed since 1.3. So chances are good that it works for you.

0


source







All Articles