Added pgrep test
This commit is contained in:
parent
31b1f0791a
commit
d6b5fcc20f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue