Grmbl, old OSX versions didn't ship with pgrep(1).
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
. ./common.inc
|
||||
|
||||
pgrep -x dnscrypt-proxy | egrep '[0-9]+' > /dev/null || exit 0
|
||||
if [ -x /usr/bin/pgrep ]; then
|
||||
pgrep -x dnscrypt-proxy | egrep '[0-9]+' > /dev/null || exit 0
|
||||
fi
|
||||
[ ! -r "$PROXY_PID_FILE" ] && exit 0
|
||||
pid=$(cat "$PROXY_PID_FILE")
|
||||
[ $pid -lt 2 ] && exit 0
|
||||
|
||||
Reference in New Issue
Block a user