2
0
mirror of https://github.com/deajan/osync synced 2024-11-03 15:40:14 +00:00

Added pgrep test

This commit is contained in:
deajan 2016-12-08 10:59:07 +01:00
parent 31b1f0791a
commit d6b5fcc20f

View File

@ -136,6 +136,11 @@ function CheckEnvironment {
Logger "rsync not present. Sync cannot start." "CRITICAL"
exit 1
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