Added pgrep test

This commit is contained in:
deajan 2016-12-08 10:59:07 +01:00
parent 31b1f0791a
commit d6b5fcc20f
1 changed files with 5 additions and 0 deletions

View File

@ -136,6 +136,11 @@ function CheckEnvironment {
Logger "rsync not present. Sync cannot start." "CRITICAL" Logger "rsync not present. Sync cannot start." "CRITICAL"
exit 1 exit 1
fi fi
if ! type pgrep > /dev/null 2>&1 ; then
Logger "pgrep not present. Sync cannot start." "CRITICAL"
exit 1
fi
} }
# Only gets checked in config file mode where all values should be present # Only gets checked in config file mode where all values should be present