From 8e731bbc5970010bcb350ebd12aedd75cde49882 Mon Sep 17 00:00:00 2001 From: binhex Date: Tue, 9 Jul 2019 23:28:57 +0100 Subject: [PATCH] prevent app name incorrectly picked up by pgrep --- run/nobody/watchdog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/nobody/watchdog.sh b/run/nobody/watchdog.sh index 4258ec2..53386ab 100644 --- a/run/nobody/watchdog.sh +++ b/run/nobody/watchdog.sh @@ -75,7 +75,7 @@ while true; do if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then # check if privoxy is running, if not then skip shutdown of process - if ! pgrep -fa "privoxy" > /dev/null; then + if ! pgrep -fa "/usr/bin/privoxy" > /dev/null; then echo "[info] Privoxy not running" @@ -169,7 +169,7 @@ while true; do if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then # check if privoxy is running, if not then start via privoxy.sh - if ! pgrep -fa "privoxy" > /dev/null; then + if ! pgrep -fa "/usr/bin/privoxy" > /dev/null; then echo "[info] Privoxy not running"