[supervisord] logfile_maxbytes=1MB logfile_backups=2 nodaemon=true [eventlistener:supervisor-proc-exit-listener] command=/usr/bin/supervisor-proc-exit-listener --container-name database events=PROCESS_STATE_EXITED autostart=true autorestart=unexpected [program:rsyslogd] command=/usr/sbin/rsyslogd -n -iNONE priority=1 autostart=true autorestart=false stdout_logfile=syslog stderr_logfile=syslog {% if INSTANCES %} {% for redis_inst, redis_items in INSTANCES.iteritems() %} [program: {{ redis_inst }}] command=/bin/bash -c "{ [[ -s /var/lib/{{ redis_inst }}/dump.rdb ]] || rm -f /var/lib/{{ redis_inst }}/dump.rdb; } && mkdir -p /var/lib/{{ redis_inst }} && exec /usr/bin/redis-server /etc/redis/redis.conf --port {{ redis_items['port'] }} --unixsocket {{ redis_items['unix_socket_path'] }} --pidfile /var/run/redis/{{ redis_inst }}.pid --dir /var/lib/{{ redis_inst }}" priority=2 autostart=true autorestart=false stdout_logfile=syslog stderr_logfile=syslog {% endfor %} {% endif %}