mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Configuration moved to /etc/redis directory Closes: https://bugs.gentoo.org/768189 Closes: https://bugs.gentoo.org/759481 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/19335 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
26 lines
701 B
Plaintext
26 lines
701 B
Plaintext
#!/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/redis.conf}
|
|
: ${REDIS_OPTS:="${REDIS_CONF}"}
|
|
: ${REDIS_USER:=redis}
|
|
: ${REDIS_GROUP:=redis}
|
|
: ${REDIS_TIMEOUT:=30}
|
|
|
|
# https://bugs.gentoo.org/631002#c10
|
|
# Force '--daemonize no' to override the config file
|
|
command="/usr/sbin/redis-server"
|
|
command_args="${REDIS_OPTS} --daemonize no"
|
|
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
|
|
}
|