[supervisord] nodaemon=true [program:haproxy] command=service haproxy start numprocs=1 autostart=true autorestart=true
conf文件正在创build四个实例。 任何想法为什么发生这种情况?
root@haproxy:/etc/init.d# ps aux | grep haproxy haproxy 18 0.0 1.1 39436 5760 ? Ss 15:42 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 27 0.0 1.3 39572 6944 ? Ss 15:42 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 36 0.0 1.1 39436 5768 ? Ss 15:42 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 45 0.0 1.1 39436 5768 ? Ss 15:42 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 69 0.0 0.1 8860 648 ? S+ 15:53 0:00 grep --color=auto haproxy
这是一个关于haproxy和它的.cfg文件的问题。
/run/haproxy目录不存在,并且由于haproxy.cfg文件中的此行而需要:
stats socket /run/haproxy/admin.sock mode 660 level admin