added public IP flag, and added hard restart for haproxy.