From 21efcfc5ef3466e4bbdb5758e9f21af14337e583 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 14 Jun 2025 22:13:48 +0200 Subject: Add templated redis --- rc.redis/redis/template/run | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rc.redis/redis/template/run (limited to 'rc.redis/redis/template/run') diff --git a/rc.redis/redis/template/run b/rc.redis/redis/template/run new file mode 100755 index 0000000..cdd0b58 --- /dev/null +++ b/rc.redis/redis/template/run @@ -0,0 +1,17 @@ +#!/bin/execlineb -WS1 + +################################# +# Start redis (key-value store) # +################################# + +fdmove -c 2 1 +s6-envdir env +multisubstitute { + importas -iu CMD CMD + importas -usCd" " CMD_OPTS CMD_OPTS +} +prlimit --nofile=8192 +define port $1 +s6-notifyoncheck -d +s6-setuidgid redis +exec -c $CMD $CMD_OPTS -- cgit v1.2.3