18 lines
334 B
Plaintext
Executable File
18 lines
334 B
Plaintext
Executable File
#!/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
|