blob: 77b48bd01406203effa8cab38ec6362fbe0ccece [file] [log] [blame]
Miroslav Zagorac70230c62020-12-09 16:54:31 +01001#!/bin/sh
2#
3_ARG_HAPROXY="${1:-$(realpath -L ${PWD}/../../../haproxy)}"
4 _ARGS="-f cmp/haproxy.cfg"
5 _LOG_DIR="_logs"
6 _LOG="${_LOG_DIR}/_log-$(basename ${0} .sh)-$(date +%s)"
7
8
9test -x "${_ARG_HAPROXY}" || exit 1
10mkdir -p "${_LOG_DIR}" || exit 2
11
12echo "executing: ${_ARG_HAPROXY} ${_ARGS} > ${_LOG}"
13"${_ARG_HAPROXY}" ${_ARGS} >"${_LOG}" 2>&1