aboutsummaryrefslogtreecommitdiff
path: root/rc.redis/redis/template/run
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-06-14 22:13:48 +0200
committerEugen Wissner <belka@caraus.de>2025-06-14 22:13:48 +0200
commit21efcfc5ef3466e4bbdb5758e9f21af14337e583 (patch)
tree2834fcf761646e8fbda93f5e246188a5c2aae2a2 /rc.redis/redis/template/run
parent22994bb8694b8aa8b1094f1e7f24f499816fa1a4 (diff)
downloads6-21efcfc5ef3466e4bbdb5758e9f21af14337e583.tar.gz
Add templated redis
Diffstat (limited to 'rc.redis/redis/template/run')
-rwxr-xr-xrc.redis/redis/template/run17
1 files changed, 17 insertions, 0 deletions
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