Fix service mode for haproxy template