Skip to content

Commit

Permalink
Hid output from pgrep check
Browse files Browse the repository at this point in the history
  • Loading branch information
acaranta committed Apr 25, 2021
1 parent 262e486 commit 7003cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inotifreload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ while true; do
# if ! kill -0 $(cat /run/haproxy.pid) ; then
# haproxy -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/$HASVC -D -p /run/haproxy.pid
# fi
if ! pgrep haproxy ; then
if ! pgrep haproxy 2>&1 >/dev/null ; then
haproxy -f /etc/haproxy/haproxy.cfg -f /etc/haproxy/$HASVC -D -p /run/haproxy.pid
else
pgrep haproxy >/run/haproxy.pid
Expand Down

0 comments on commit 7003cfc

Please sign in to comment.