From d6b5fcc20f9ea47f085f05f31f67397a86f6ca74 Mon Sep 17 00:00:00 2001 From: deajan Date: Thu, 8 Dec 2016 10:59:07 +0100 Subject: [PATCH] Added pgrep test --- dev/n_osync.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index af95ec9..8664b2e 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -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