Skip to content

Commit

Permalink
Added display of reloaded PID
Browse files Browse the repository at this point in the history
  • Loading branch information
acaranta committed Apr 22, 2021
1 parent 2b2c1ff commit b05e725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inotifreload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b05e725

Please sign in to comment.