#!/bin/bash if [ -s /data/haproxy/cert.pem ] then # ssl cert seems to exist, so start with /usr/sbin/haproxy -f /haproxy_ssl.conf -p /haproxy.pid -db else bash fi