mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 16:38:01 +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>
23 lines
689 B
Text
23 lines
689 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
: ${REDICT_SENTINEL_DIR:=/tmp}
|
|
: ${REDICT_SENTINEL_CONF:=/etc/redict/sentinel.conf}
|
|
: ${REDICT_SENTINEL_USER:=redict}
|
|
: ${REDICT_SENTINEL_GROUP:=redict}
|
|
: ${REDICT_SENTINEL_TIMEOUT:=30}
|
|
|
|
depend() {
|
|
use localmount logger
|
|
after keepalived redict
|
|
provide redis-sentinel
|
|
}
|
|
|
|
command="/usr/bin/redict-sentinel"
|
|
command_args="${REDICT_SENTINEL_CONF}"
|
|
command_background="true"
|
|
command_user="${REDICT_SENTINEL_USER}:${REDICT_SENTINEL_GROUP}"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
retry="${REDICT_SENTINEL_TIMEOUT}"
|
|
start_stop_daemon_args="--chdir \"${REDICT_SENTINEL_DIR}\""
|