Small adjusts on start HAProxy
This commit is contained in:
parent
e6d5842098
commit
fad1615968
2 changed files with 5 additions and 5 deletions
|
|
@ -57,11 +57,10 @@ if [ -f /tmp/force-reload ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z "$1" ]]; then
|
if [[ ! -z "$1" ]]; then
|
||||||
echo "[CONF_CHECK] Start haproxy"
|
echo "[CONF_CHECK] Starting haproxy..."
|
||||||
/usr/sbin/haproxy -W -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /var/run/haproxy.sock
|
/usr/sbin/haproxy -W -f /etc/haproxy/haproxy.cfg $(ls /etc/haproxy/conf.d/*.cfg 2>/dev/null | xargs -I{} echo -f {}) -p /run/haproxy.pid -S /var/run/haproxy.sock &
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$RELOAD" == "true" ]]; then
|
elif [[ "$RELOAD" == "true" ]]; then
|
||||||
echo "[CONF_CHECK] Reloading..."
|
echo "[CONF_CHECK] Reloading..."
|
||||||
/usr/sbin/haproxy -W -f /etc/haproxy/haproxy.cfg $(ls /etc/haproxy/conf.d/*.cfg 2>/dev/null | xargs -I{} echo -f {}) -p /run/haproxy.pid -x /var/run/haproxy.sock -sf $(cat /run/haproxy.pid) &
|
/usr/sbin/haproxy -W -f /etc/haproxy/haproxy.cfg $(ls /etc/haproxy/conf.d/*.cfg 2>/dev/null | xargs -I{} echo -f {}) -p /run/haproxy.pid -x /var/run/haproxy.sock -sf $(cat /run/haproxy.pid) &
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ global
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
log global
|
log global
|
||||||
|
option httplog
|
||||||
|
|
||||||
timeout connect 3s
|
timeout connect 3s
|
||||||
timeout client 10s
|
timeout client 10s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue