tests - show logs when haproxy fails in linux tests
This commit is contained in:
parent
a26ff09da2
commit
d3672e6d71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue