I was trying to run couchdb with runit, and I encountered the error above. Even this, this and many others didn't help me in knowing what the problem is.
Here was what I did to produce the problem. Runit and couchdb were installed fresh.
I am running CentOS 7.
Step 1: Make sure that couchdb command is correct:
#exec /usr/local/bin/couchdb
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
Step 2: Make a folders. Here is what my folder structure like:
/
|--etc
|--sv
|--couchdb
|--service
Step 3: Inside /etc/sv/
, I create a file name run
with the following script inside:
#!/bin/sh
exec /usr/local/bin/couchdb
Step 4: Activate it by linking the process directory:
ln -s /etc/sv/couchdb /etc/service/couchdb
Step 5: Try to run it:
#sv start couchdb
warning: couchdb: unable to open supervise/ok: file does not exist
All the search results point to the same sort of steps that need taking. I followed all the instructions I could find and I got stuck here.