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