Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/redis/files: redis.initd-3
Date: Mon, 26 Aug 2013 11:47:19
Message-Id: 20130826114713.EF3F02004E@flycatcher.gentoo.org
1 djc 13/08/26 11:47:13
2
3 Added: redis.initd-3
4 Log:
5 Version bump redis to 2.6.15 (fixes 472968, 478536).
6
7 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
8
9 Revision Changes Path
10 1.1 dev-db/redis/files/redis.initd-3
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/files/redis.initd-3?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/redis/files/redis.initd-3?rev=1.1&content-type=text/plain
14
15 Index: redis.initd-3
16 ===================================================================
17 #!/sbin/runscript
18 # $Header: /var/cvsroot/gentoo-x86/dev-db/redis/files/redis.initd-3,v 1.1 2013/08/26 11:47:13 djc Exp $
19
20 REDIS_DIR=${REDIS_DIR:-/var/lib/redis}
21 REDIS_CONF=${REDIS_CONF:-/etc/redis.conf}
22 REDIS_OPTS=${REDIS_OPTS:-"${REDIS_CONF}"}
23 REDIS_USER=${REDIS_USER:-redis}
24 REDIS_GROUP=${REDIS_GROUP:-redis}
25
26 command=/usr/sbin/redis-server
27 start_stop_daemon_args="--chdir \"${REDIS_DIR}\"
28 --user ${REDIS_USER} --group ${REDIS_GROUP}"
29 command_args="${REDIS_OPTS}"
30 pidfile=${REDIS_PID:-/run/redis/redis.pid}
31
32 depend() {
33 use net localmount logger
34 after keepalived
35 }
36
37 start_pre() {
38 checkpath -d -m 0775 -o ${REDIS_USER}:${REDIS_GROUP} $(dirname ${REDIS_PID})
39 }
40
41 stop() {
42 ebegin "Stopping ${SVCNAME}"
43 start-stop-daemon --stop \
44 --exec ${retries} \
45 --retry 30 \
46 --pidfile ${pidfile}
47 eend
48 }