Hi,
We faced with haproxy, we have a script which deletes the frontend and backend entries of haproxy based on name and does a reload of haproxy after haproxy file check is done. In one such scenario after deleting the frontend and backend and reloading we found that haproxy was in stop state Below are the logs which shows the backend was started again during reload but the frontends were not started and the same are shown in logs after we manually restarted haproxy Any feedback regarding this will be very useful. Regards Senthil May 18 19:36:10 indya-lb haproxy[7375]: Stopping frontend ssl_frontend_1 in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping backend ssl_frontend_1BACK in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping frontend ssl_frontend_2 in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping backend ssl_frontend_2BACK in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping frontend Star in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping backend StarBACK in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping frontend Staging in 0 ms. May 18 19:36:10 indya-lb haproxy[7375]: Stopping backend StagingBACK in 0 ms. May 18 19:36:10 indya-lb haproxy[13147]: Proxy ssl_frontend_2BACK started. May 18 19:36:10 indya-lb haproxy[13147]: Proxy StarBACK started. May 18 19:36:10 indya-lb haproxy[13147]: Proxy StagingBACK started. May 18 19:36:10 indya-lb haproxy[7375]: Proxy ssl_frontend_1 stopped (FE: 3886 conns, BE: 0 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy ssl_frontend_1BACK stopped (FE: 0 conns, BE: 3583 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy ssl_frontend_2 stopped (FE: 0 conns, BE: 0 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy ssl_frontend_2BACK stopped (FE: 0 conns, BE: 0 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy Star stopped (FE: 60927284 conns, BE: 0 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy StarBACK stopped (FE: 0 conns, BE: 59690087 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy Staging stopped (FE: 0 conns, BE: 0 conns). May 18 19:36:10 indya-lb haproxy[7375]: Proxy StagingBACK stopped (FE: 0 conns, BE: 0 conns). May 18 20:09:32 indya-lb haproxy[13204]: Proxy ssl_frontend_2 started. May 18 20:09:32 indya-lb haproxy[13204]: Proxy ssl_frontend_2BACK started. May 18 20:09:32 indya-lb haproxy[13204]: Proxy Star started. May 18 20:09:32 indya-lb haproxy[13204]: Proxy StarBACK started. May 18 20:09:32 indya-lb haproxy[13204]: Proxy Staging started. May 18 20:09:32 indya-lb haproxy[13204]: Proxy StagingBACK started. We are the using the init script to reload haproxy "service haproxy reload" in centos and the script is as follows #!/bin/sh # # chkconfig: - 85 15 # description: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited \ # for high availability environments. # processname: haproxy # config: /etc/haproxy.cfg # pidfile: /var/run/haproxy.pid # Source function library. if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions elif [ -f /etc/rc.d/init.d/functions ] ; then . /etc/rc.d/init.d/functions else exit 0 fi # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -f /etc/haproxy.cfg ] || exit 1 RETVAL=0 start() { /usr/sbin/haproxy -c -q -f /etc/haproxy.cfg if [ $? -ne 0 ]; then echo "Errors found in configuration file." return 1 fi echo -n "Starting HAproxy: " daemon /usr/sbin/haproxy -D -f /etc/haproxy.cfg -p /var/run/haproxy.pid RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/haproxy return $RETVAL } stop() { echo -n "Shutting down HAproxy: " killproc haproxy -USR1 RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/haproxy [ $RETVAL -eq 0 ] && rm -f /var/run/haproxy.pid return $RETVAL } restart() { /usr/sbin/haproxy -c -q -f /etc/haproxy.cfg if [ $? -ne 0 ]; then echo "Errors found in configuration file, check it with 'haproxy check'." return 1 fi stop start } check() { /usr/sbin/haproxy -c -q -V -f /etc/haproxy.cfg } rhstatus() { status haproxy } condrestart() { [ -e /var/lock/subsys/haproxy ] && restart || : } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) restart ;; reload) restart ;; condrestart) condrestart ;; status) rhstatus ;; check) check ;; *) echo $"Usage: haproxy {start|stop|restart|reload|condrestart|status|check}" RETVAL=1 esac exit $RETVAL -- **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Netmagic Solutions Pvt. Ltd. has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Netmagic Solutions Pvt. Ltd. reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Netmagic Solutions Pvt. Ltd.'s e-mail system. ***************** End of Disclaimer *******************