#!/bin/bash
set -eux

if service haproxy status; then
    service haproxy reload
else
    service haproxy restart
fi
