[supervisord] logfile=/var/log/supervisord.log pidfile=/var/run/supervisord.pid nodaemon=true [program:haproxy-log] process_name=haproxy-log stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true command=tail -F /var/log/haproxy.log [program:dnsmasq-log] process_name=dnsmasq-log stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true command=tail -F /var/log/dnsmasq.log [program:haproxy-template] process_name=haproxy-template stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true command=bash -c "/usr/local/bin/consul-template -config /router/consul.cfg -dedup -template '/router/haproxy.cfg.tmpl:/router/haproxy.cfg:/usr/sbin/haproxy -D -p /var/run/haproxy.pid -f /router/haproxy.cfg -sf $(ps -ef | grep haproxy | grep -v log | awk \"{ print \$1 }\" | tr \"\n\" \" \") || true'" [program:dnsmasq-template] process_name=dnsmasq-template stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true command=bash -c "/usr/local/bin/consul-template -config /router/consul.cfg -template '/router/dnsmasq.servers.tmpl:/router/dnsmasq.servers:killall -s SIGHUP dnsmasq || true' -template '/router/dnsmasq.hosts.tmpl:/router/dnsmasq.hosts:killall -s SIGHUP dnsmasq || true'"