diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-10-22 09:43:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 09:43:44 +0300 |
commit | 7930644b6c44363666d44bc96788faaffb400473 (patch) | |
tree | 68ff61a0e293ac5615fb0abd66c3accaaf565245 /include/functions | |
parent | 554dd2d5e90ade460e2c8f318dde3d7e0031cdce (diff) | |
parent | 699b5b6045e5a821463110e2ff48900c69fed38d (diff) |
Merge branch 'master' into fix_nginx_parser
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/functions b/include/functions index 4af4cd7b..26916461 100644 --- a/include/functions +++ b/include/functions @@ -1547,8 +1547,7 @@ if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi RUNNING=0 - # AIX does not fully support pgrep options, so using ps instead - if [ "${OS}" != "AIX" ]; then + if [ -x "${PGREPBINARY}" ] && [ "${OS}" != "AIX" ]; then # When --user is used, perform a search using the -u option # Initialize users for strict mode if [ -n "${users:-}" ]; then |