mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 08:29:37 +00:00
Closes: https://bugs.gentoo.org/932244 Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev> Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
26 lines
730 B
Text
26 lines
730 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
: ${REDICT_DIR:=/var/lib/redict}
|
|
: ${REDICT_CONF:=/etc/redict/redict.conf}
|
|
: ${REDICT_OPTS:="${REDICT_CONF}"}
|
|
: ${REDICT_USER:=redict}
|
|
: ${REDICT_GROUP:=redict}
|
|
: ${REDICT_TIMEOUT:=30}
|
|
|
|
# https://bugs.gentoo.org/631002#c10
|
|
# Force '--daemonize no' to override the config file
|
|
command="/usr/bin/redict-server"
|
|
command_args="${REDICT_OPTS} --daemonize no"
|
|
command_background="true"
|
|
command_user="${REDICT_USER}:${REDICT_GROUP}"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
retry="${REDICT_TIMEOUT}"
|
|
start_stop_daemon_args="--chdir \"${REDICT_DIR}\""
|
|
|
|
depend() {
|
|
use localmount logger
|
|
after keepalived
|
|
provide redis
|
|
}
|