From 7003cfc3f0f6bd6e094c312463c55efefb1ae405 Mon Sep 17 00:00:00 2001 From: acaranta Date: Sun, 25 Apr 2021 12:50:27 +0200 Subject: [PATCH] Hid output from pgrep check --- inotifreload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inotifreload.sh b/inotifreload.sh index 89d1643..8cb7cf4 100755 --- a/inotifreload.sh +++ b/inotifreload.sh @@ -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