forked from ccchb/ansible
genofire
0a6b680cda
The role expects two parameters: * `redis_instance`: the instance name * `redis_client_group`: the group allowed to access the instance's unix socket Fixes #17 Updates #10
15 lines
302 B
Django/Jinja
15 lines
302 B
Django/Jinja
#!/usr/local/bin/execlineb -P
|
||
# {{ ansible_managed }}
|
||
|
||
s6-envdir ./env
|
||
multisubstitute {
|
||
importas -i -u NAME NAME
|
||
}
|
||
|
||
foreground { fdmove -c 1 2 echo "${NAME}: Starting." }
|
||
s6-notifyoncheck -d -w 100 -n 70
|
||
|
||
fdmove -c 2 1
|
||
s6-setuidgid redis
|
||
redis-server /usr/local/etc/redis-{{ redis_instance }}.conf
|
||
|