Added pgrep test

This commit is contained in:
deajan 2016-12-08 10:59:07 +01:00
父節點 31b1f0791a
當前提交 d6b5fcc20f
共有 1 個文件被更改,包括 5 次插入0 次删除

查看文件

@ -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