prevent app name incorrectly picked up by pgrep

pull/23/head
binhex 6 years ago
parent 5f617ed3e2
commit 8e731bbc59

@ -75,7 +75,7 @@ while true; do
if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then
# check if privoxy is running, if not then skip shutdown of process # 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" echo "[info] Privoxy not running"
@ -169,7 +169,7 @@ while true; do
if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then
# check if privoxy is running, if not then start via privoxy.sh # 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" echo "[info] Privoxy not running"

Loading…
Cancel
Save