diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2017-10-06 20:40:02 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-10-08 16:23:40 -0700 |
commit | f689ea635ecbb7290b1c914000bf83e9289cd5e9 (patch) | |
tree | b1280cdc5b2d044ee7ed1787977a0426c898cd02 /dev-db/redis/files | |
parent | dev-qt/qt-creator: version bump (diff) | |
download | gentoo-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')
-rw-r--r-- | dev-db/redis/files/redis-3.2.3-config.patch | 2 | ||||
-rw-r--r-- | dev-db/redis/files/redis.confd-r1 | 20 | ||||
-rw-r--r-- | dev-db/redis/files/redis.initd-5 | 23 |
3 files changed, 44 insertions, 1 deletions
diff --git a/dev-db/redis/files/redis-3.2.3-config.patch b/dev-db/redis/files/redis-3.2.3-config.patch index 541e25494645..bde0ef7cbaf1 100644 --- a/dev-db/redis/files/redis-3.2.3-config.patch +++ b/dev-db/redis/files/redis-3.2.3-config.patch @@ -34,7 +34,7 @@ index 22e00bc..b09de57 100644 # output buffers (but this is not needed if the policy is 'noeviction'). # -# maxmemory <bytes> -+maxmemory 67108864 ++maxmemory 64MB # MAXMEMORY POLICY: how Redis will select what to remove when maxmemory # is reached. You can select among five behaviors: diff --git a/dev-db/redis/files/redis.confd-r1 b/dev-db/redis/files/redis.confd-r1 new file mode 100644 index 000000000000..1f4ff23f211b --- /dev/null +++ b/dev-db/redis/files/redis.confd-r1 @@ -0,0 +1,20 @@ +# Redis user. +REDIS_USER="redis" + +# Redis group. +REDIS_GROUP="redis" + +# Redis configuration file. +REDIS_CONF="/etc/redis.conf" + +# Redis dump directory. +REDIS_DIR="/var/lib/redis" + +# Redis options. +# (Redis expects the first argument to be the configuration file.) +REDIS_OPTS="${REDIS_CONF}" + +# Specify the network service that corresponds to the "bind" setting +# in your redis.conf. For example, if you bind to 127.0.0.1, this should +# be set to "net.lo" which provides the loopback interface. +rc_need="net.lo" 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 +} |