summaryrefslogtreecommitdiff
path: root/dev-db/redict/files/redict-sentinel.initd
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-04-18 01:52:18 +0200
committerPetr Vaněk <arkamar@gentoo.org>2024-04-23 16:31:23 +0200
commit2b352f5973ac3936330344ab66a6b5da776d542d (patch)
treea48bdae84b2c82665675caecc29a3805e4944250 /dev-db/redict/files/redict-sentinel.initd
parent1475d9a56905e25efe4d027fd2b7f82cc94b2d02 (diff)
downloadgentoo-2b352f5973ac3936330344ab66a6b5da776d542d.tar.gz
gentoo-2b352f5973ac3936330344ab66a6b5da776d542d.tar.bz2
gentoo-2b352f5973ac3936330344ab66a6b5da776d542d.zip
dev-db/redict: new package, add 7.3.0
Based on the redis 7.2.4-r1 ebuild. Without use of a custom configure.ac, and with aditional patches to make use of system packages for jemalloc and hiredict. Closes: https://bugs.gentoo.org/928119 Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev> Closes: https://github.com/gentoo/gentoo/pull/36176 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'dev-db/redict/files/redict-sentinel.initd')
-rw-r--r--dev-db/redict/files/redict-sentinel.initd22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-db/redict/files/redict-sentinel.initd b/dev-db/redict/files/redict-sentinel.initd
new file mode 100644
index 000000000000..71bc19e2b7f1
--- /dev/null
+++ b/dev-db/redict/files/redict-sentinel.initd
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# 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
+}
+
+command="/usr/sbin/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}\""