mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-28 15:42:30 +00:00
a63d1a0863
This one is the last optional module to build with haproxy, so let's move it to addons/. It was renamed to "ot" as it was the only one whose USE_* option did not match the directory name, now this is consistent. Few changes were required, only the Makefile, and doc were adjusted, as the directory was already self-contained and relocatable.
14 lines
363 B
Bash
Executable File
14 lines
363 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
_ARG_HAPROXY="${1:-$(realpath -L ${PWD}/../../../haproxy)}"
|
|
_ARGS="-f ctx/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
|