summaryrefslogtreecommitdiff
path: root/dev-db/redict/files/redict.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.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.initd')
-rw-r--r--dev-db/redict/files/redict.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-db/redict/files/redict.initd b/dev-db/redict/files/redict.initd
new file mode 100644
index 000000000000..90e1aa867658
--- /dev/null
+++ b/dev-db/redict/files/redict.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# 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/sbin/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
+}