Gentoo Archives: gentoo-commits

From: "Caleb Tennis (caleb)" <caleb@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/couchdb/files: couchdb.init-0.8.1 couchdb.conf-0.8.1
Date: Sun, 22 Mar 2009 21:27:46
Message-Id: E1LlVCq-0004Ku-JW@stork.gentoo.org
1 caleb 09/03/22 21:27:44
2
3 Added: couchdb.init-0.8.1 couchdb.conf-0.8.1
4 Log:
5 Initial import of couchdb, from 197176
6 (Portage version: 2.1.6.7/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 dev-db/couchdb/files/couchdb.init-0.8.1
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/couchdb/files/couchdb.init-0.8.1?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/couchdb/files/couchdb.init-0.8.1?rev=1.1&content-type=text/plain
13
14 Index: couchdb.init-0.8.1
15 ===================================================================
16 #!/sbin/runscript
17 # Copyright 2008 Dirkjan Ochtman
18 # Distributed under the terms of the GNU General Public License v2
19
20 depend() {
21 need net
22 }
23
24 start() {
25 ebegin "Starting ${SVCNAME}"
26
27 args="-b"
28 if test -n "$COUCHDB_STDOUT_FILE"; then
29 args="$args -o $COUCHDB_STDOUT_FILE"
30 fi
31 if test -n "$COUCHDB_STDERR_FILE"; then
32 args="$args -e $COUCHDB_STDERR_FILE"
33 fi
34 if test -n "$COUCHDB_RESPAWN_TIMEOUT"; then
35 args="$args -r $COUCHDB_RESPAWN_TIMEOUT"
36 fi
37 if test -n "$COUCHDB_OPTIONS"; then
38 args="$args $COUCHDB_OPTIONS"
39 fi
40 if test -n "$COUCHDB_PID_FILE"; then
41 args="$args -p $COUCHDB_PID_FILE"
42 else
43 echo "* ERROR: COUCHDB_PID_FILE must be set"
44 return -1
45 fi
46 if test -z "$COUCHDB_USER"; then
47 echo "* ERROR: COUCHDB_USER must be set"
48 return -1
49 fi
50
51 start-stop-daemon --start --exec ${EXEC} --name beam \
52 --user ${COUCHDB_USER} --chuid ${COUCHDB_USER} --pidfile ${COUCHDB_PID_FILE} -- $args
53
54 eend $? "Failed to start ${SVCNAME}"
55 }
56
57 stop() {
58 ebegin "Stopping ${SVCNAME}"
59 start-stop-daemon --stop --exec ${EXEC} --name beam \
60 --pidfile ${COUCHDB_PID_FILE}
61 eend $? "Failed to stop ${SVCNAME}"
62 }
63
64
65
66 1.1 dev-db/couchdb/files/couchdb.conf-0.8.1
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/couchdb/files/couchdb.conf-0.8.1?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/couchdb/files/couchdb.conf-0.8.1?rev=1.1&content-type=text/plain
70
71 Index: couchdb.conf-0.8.1
72 ===================================================================
73 # Options for CouchDB
74
75 EXEC="/usr/bin/couchdb"
76 COUCHDB_USER="couchdb"
77 COUCHDB_PID_FILE="/var/run/couchdb/couchdb.pid"
78 COUCHDB_STDOUT_FILE="/dev/null"
79 COUCHDB_STDERR_FILE="/dev/null"
80 #COUCHDB_RESPAWN_TIMEOUT=
81 #COUCHDB_OPTIONS=