From d3672e6d711c61961be1cb87cc2aa4679b407bbb Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 4 Dec 2023 12:01:49 +0100 Subject: [PATCH] tests - show logs when haproxy fails in linux tests --- examples/behind-reverse-proxy/setup-linux.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/behind-reverse-proxy/setup-linux.sh b/examples/behind-reverse-proxy/setup-linux.sh index 8c5fa150c..d0205579b 100755 --- a/examples/behind-reverse-proxy/setup-linux.sh +++ b/examples/behind-reverse-proxy/setup-linux.sh @@ -18,7 +18,12 @@ cp haproxy.cfg /etc/haproxy sed -i "s/*:8080/*:80/" /etc/haproxy/haproxy.cfg sed -i "s/mybunker/127.0.0.1/" /etc/haproxy/haproxy.cfg systemctl stop bunkerweb +sleep 10 systemctl stop haproxy systemctl start haproxy +if [ $? -ne 0 ] ; then + systemctl status haproxy + journalctl -u haproxy.service +fi echo "hello" > /var/www/html/index.html