summaryrefslogtreecommitdiff
path: root/dev-db/redis/files/redis.initd-5
diff options
context:
space:
mode:
authorTomáš Mózes <hydrapolic@gmail.com>2017-10-06 20:40:02 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2017-10-08 16:23:40 -0700
commitf689ea635ecbb7290b1c914000bf83e9289cd5e9 (patch)
treeb1280cdc5b2d044ee7ed1787977a0426c898cd02 /dev-db/redis/files/redis.initd-5
parent86345041103297a90f33816e74ea573b2ca30622 (diff)
downloadgentoo-f689ea635ecbb7290b1c914000bf83e9289cd5e9.tar.gz
gentoo-f689ea635ecbb7290b1c914000bf83e9289cd5e9.tar.bz2
gentoo-f689ea635ecbb7290b1c914000bf83e9289cd5e9.zip
dev-db/redis: bump to 4.0.2
(cherry picked from commit 93eac00c9ae82a63fceacdcc5b7ded98e44a3a9c) Bug: https://bugs.gentoo.org/631002 Closes: https://github.com/gentoo/gentoo/pull/5875#issuecomment-334886169 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'dev-db/redis/files/redis.initd-5')
-rw-r--r--dev-db/redis/files/redis.initd-523
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-db/redis/files/redis.initd-5 b/dev-db/redis/files/redis.initd-5
new file mode 100644
index 000000000000..a567b1e210d8
--- /dev/null
+++ b/dev-db/redis/files/redis.initd-5
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+: ${REDIS_DIR:=/var/lib/redis}
+: ${REDIS_CONF:=/etc/redis.conf}
+: ${REDIS_OPTS:="${REDIS_CONF}"}
+: ${REDIS_USER:=redis}
+: ${REDIS_GROUP:=redis}
+: ${REDIS_TIMEOUT:=30}
+
+command="/usr/sbin/redis-server"
+command_args="${REDIS_OPTS}"
+command_background="true"
+command_user="${REDIS_USER}:${REDIS_GROUP}"
+pidfile="/run/${RC_SVCNAME}.pid"
+retry="${REDIS_TIMEOUT}"
+start_stop_daemon_args="--chdir \"${REDIS_DIR}\""
+
+depend() {
+ use localmount logger
+ after keepalived
+}