From b05e7256b74cbedf20c5de6264f585414a655ce5 Mon Sep 17 00:00:00 2001 From: acaranta Date: Thu, 22 Apr 2021 14:40:19 +0200 Subject: [PATCH] Added display of reloaded PID --- inotifreload.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inotifreload.sh b/inotifreload.sh index 265827f..612e34e 100755 --- a/inotifreload.sh +++ b/inotifreload.sh @@ -42,7 +42,8 @@ while true; do if [ $RELOAD -gt 0 ]; then echo "$(date) - Found changes... gracefully reloading HAProxy" - #if it changed, then copy it and reload properly haproxy + #reload properly haproxy + echo "### Reloading PID $(cat /run/haproxy.pid) " haproxy -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/$HASVC -D -p /run/haproxy.pid -sf $(cat /run/haproxy.pid) fi fi