diff options
Diffstat (limited to 'rc.redis/redis/template/run')
| -rwxr-xr-x | rc.redis/redis/template/run | 17 |
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 |
