You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
362 B
13 lines
362 B
#!/bin/sh
|
|
#
|
|
_ARG_HAPROXY="${1:-$(realpath -L ${PWD}/../../../haproxy)}"
|
|
_ARGS="-f sa/haproxy.cfg"
|
|
_LOG_DIR="_logs"
|
|
_LOG="${_LOG_DIR}/_log-$(basename ${0} .sh)-$(date +%s)"
|
|
|
|
|
|
test -x "${_ARG_HAPROXY}" || exit 1
|
|
mkdir -p "${_LOG_DIR}" || exit 2
|
|
|
|
echo "executing: ${_ARG_HAPROXY} ${_ARGS} > ${_LOG}"
|
|
"${_ARG_HAPROXY}" ${_ARGS} >"${_LOG}" 2>&1
|
|
|