summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2013-05-06 08:45:00 +0000
committerDirkjan Ochtman <djc@gentoo.org>2013-05-06 08:45:00 +0000
commit9301c43c9d8fb19af8ccef53f370150da5469b17 (patch)
treec6e26d1682427aeddbffae465f26086be1fc6083 /dev-db/redis/files
parentVersion bump. (diff)
downloadgentoo-2-9301c43c9d8fb19af8ccef53f370150da5469b17.tar.gz
gentoo-2-9301c43c9d8fb19af8ccef53f370150da5469b17.tar.bz2
gentoo-2-9301c43c9d8fb19af8ccef53f370150da5469b17.zip
Update init script for redis-2.6.13 (thanks to jbergstroem).
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
Diffstat (limited to 'dev-db/redis/files')
-rw-r--r--dev-db/redis/files/redis.initd-223
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-db/redis/files/redis.initd-2 b/dev-db/redis/files/redis.initd-2
new file mode 100644
index 000000000000..3dd3d78154a1
--- /dev/null
+++ b/dev-db/redis/files/redis.initd-2
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# $Header: /var/cvsroot/gentoo-x86/dev-db/redis/files/redis.initd-2,v 1.1 2013/05/06 08:45:00 djc Exp $
+
+REDIS_DIR=${REDIS_DIR:-/var/lib/redis}
+REDIS_CONF=${REDIS_CONF:-/etc/redis.conf}
+REDIS_OPTS=${REDIS_OPTS:-"${REDIS_CONF}"}
+REDIS_USER=${REDIS_USER:-redis}
+REDIS_GROUP=${REDIS_GROUP:-redis}
+
+command=/usr/sbin/redis-server
+start_stop_daemon_args="--chdir \"${REDIS_DIR}\"
+ --user ${REDIS_USER} --group ${REDIS_GROUP}"
+command_args="${REDIS_OPTS}"
+pidfile=${REDIS_PID:-/var/run/redis/redis.pid}
+
+depend() {
+ use net localmount logger
+ after keepalived
+}
+
+start_pre() {
+ checkpath -d -m 0775 -o ${REDIS_USER}:${REDIS_GROUP} $(dirname ${REDIS_PID})
+}