28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
#!/bin/execlineb -P
|
|
|
|
###########################################################################
|
|
# Start redis instance supervisor #
|
|
# #
|
|
# The redis instances are run by the redis user. Database directory is #
|
|
# owned by that user and the redis group. You can create these with: #
|
|
# #
|
|
# groupadd -g 121 redis #
|
|
# useradd -u 121 -g 121 -d /var/lib/redis -s /sbin/nologin redis #
|
|
# #
|
|
# The configuration for redis instances is expected to be named same as #
|
|
# port the instance will be running on. For example if redis should #
|
|
# listen on 6379, there should be a configuration file in #
|
|
# /etc/redis/6379.conf. Generic settings can be put in #
|
|
# /etc/redis/redis.conf and included in other configurations. s6 instance #
|
|
# name should be the port number as well, 6379 in this case. #
|
|
###########################################################################
|
|
|
|
fdmove -c 2 1
|
|
foreground { chown redis:redis /var/lib/redis }
|
|
s6-envdir env
|
|
multisubstitute {
|
|
importas -u CMD CMD
|
|
importas -usCd" " CMD_OPTS CMD_OPTS
|
|
}
|
|
emptyenv -p $CMD $CMD_OPTS -- instance
|