Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
acaranta committed Apr 19, 2021
1 parent b954353 commit 0ec6b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inotifreload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ while true; do
haproxy -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/$HASVC -D -p /run/haproxy.pid
fi
#start an inotifywait (timeout -s <#> seconds)
#inotifywait -t 10 -q -e close_write,moved_to,create /hacfg/$HASVC 2>&1 >/dev/null
# inotifywait -t 10 -q -e close_write,moved_to,create /hacfg/$HASVC 2>&1 >/dev/null
inotifywait -t 10 -q -r /hacfg 2>&1 >/dev/null

#If the config or certificate store did not really change don't do anything
Expand All @@ -22,7 +22,7 @@ while true; do
cp -f /hacfg/$HASVC /etc/haproxy/$HASVC
RELOAD=1
fi

diff /hacfg/certs /etc/haproxy/certs 2>&1 >/dev/null
if [ $? -gt 0 ]; then
echo "$(date) - Found changes in /hacfg/certs file..."
Expand Down

0 comments on commit 0ec6b2f

Please sign in to comment.