Add templated redis

This commit is contained in:
2025-06-14 22:13:48 +02:00
parent 22994bb869
commit 21efcfc5ef
26 changed files with 120 additions and 0 deletions

17
rc.redis/redis/template/run Executable file
View File

@ -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