diff options
author | 2009-04-01 11:08:07 +0000 | |
---|---|---|
committer | 2009-04-01 11:08:07 +0000 | |
commit | 022dc99be5e35fcc2ad371a9f322135010946dd5 (patch) | |
tree | c8a2a116ae59a68b8d4560bce5c165431d494004 /dev-db/couchdb/files | |
parent | Marked ~ppc/~ppc64 for bug #264108. (diff) | |
download | gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.tar.gz gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.tar.bz2 gentoo-2-022dc99be5e35fcc2ad371a9f322135010946dd5.zip |
version bump
(Portage version: 2.1.6.9/cvs/Linux i686)
Diffstat (limited to 'dev-db/couchdb/files')
-rw-r--r-- | dev-db/couchdb/files/couchdb.conf-0.9 | 9 | ||||
-rw-r--r-- | dev-db/couchdb/files/couchdb.init-0.9 | 47 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-db/couchdb/files/couchdb.conf-0.9 b/dev-db/couchdb/files/couchdb.conf-0.9 new file mode 100644 index 000000000000..a2258d356c5e --- /dev/null +++ b/dev-db/couchdb/files/couchdb.conf-0.9 @@ -0,0 +1,9 @@ +# Options for CouchDB + +EXEC="/usr/bin/couchdb" +COUCHDB_USER="couchdb" +COUCHDB_PID_FILE="/var/run/couchdb/couchdb.pid" +COUCHDB_STDOUT_FILE="/dev/null" +COUCHDB_STDERR_FILE="/dev/null" +#COUCHDB_RESPAWN_TIMEOUT= +#COUCHDB_OPTIONS= diff --git a/dev-db/couchdb/files/couchdb.init-0.9 b/dev-db/couchdb/files/couchdb.init-0.9 new file mode 100644 index 000000000000..42b92917143b --- /dev/null +++ b/dev-db/couchdb/files/couchdb.init-0.9 @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Copyright 2008 Dirkjan Ochtman +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + + args="-b" + if test -n "$COUCHDB_STDOUT_FILE"; then + args="$args -o $COUCHDB_STDOUT_FILE" + fi + if test -n "$COUCHDB_STDERR_FILE"; then + args="$args -e $COUCHDB_STDERR_FILE" + fi + if test -n "$COUCHDB_RESPAWN_TIMEOUT"; then + args="$args -r $COUCHDB_RESPAWN_TIMEOUT" + fi + if test -n "$COUCHDB_OPTIONS"; then + args="$args $COUCHDB_OPTIONS" + fi + if test -n "$COUCHDB_PID_FILE"; then + args="$args -p $COUCHDB_PID_FILE" + else + echo "* ERROR: COUCHDB_PID_FILE must be set" + return -1 + fi + if test -z "$COUCHDB_USER"; then + echo "* ERROR: COUCHDB_USER must be set" + return -1 + fi + + start-stop-daemon --start --exec ${EXEC} --name beam \ + --user ${COUCHDB_USER} --chuid ${COUCHDB_USER} --pidfile ${COUCHDB_PID_FILE} -- $args + + eend $? "Failed to start ${SVCNAME}" +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec ${EXEC} --name beam \ + --pidfile ${COUCHDB_PID_FILE} + eend $? "Failed to stop ${SVCNAME}" +} |