4ba937d626
CouchDB is a distributed, document-oriented, Non-Relational DataBase Management Server (NRDBMS). It is accessible via a RESTful JSON API, and provides incremental replication with bi-directional conflict detection and management. Data is stored with a schema-free, flat address space, and may be queried via a table-oriented reporting engine that uses Javascript as a query language. Joint work of maintainer Benoit Chesneau, fgsch@ and myself.
19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
To start CouchDB at boot and shut it down when the system goes down,
|
|
add the following lines to /etc/rc.local and /etc/rc.shutdown, respectively:
|
|
|
|
/etc/rc.local:
|
|
|
|
if [ -x ${TRUEPREFIX}/bin/couchdb ]; then
|
|
echo -n ' couchdb'
|
|
install -d -o _couchdb /var/run/couchdb
|
|
su -l _couchdb -c "${TRUEPREFIX}/bin/couchdb -b -p \
|
|
/var/run/couchdb/couchdb.pid" >/dev/null
|
|
fi
|
|
|
|
/etc/rc.shutdown:
|
|
|
|
if [ -r /var/run/couchdb/couchdb.pid ]; then
|
|
su -l _couchdb -c "${TRUEPREFIX}/bin/couchdb -d -p \
|
|
/var/run/couchdb/couchdb.pid" >/dev/null
|
|
fi
|