From 46a990c4d81c89440e9f84277a427b4b61c79325 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 20 Feb 2018 22:53:30 +0100 Subject: [PATCH] Fixed inotifywait cannot load loop --- dev/n_osync.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index aa8a092..db7edbf 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -8,7 +8,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2017 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.2.5-dev -PROGRAM_BUILD=2018022002 +PROGRAM_BUILD=2018022003 IS_STABLE=no @@ -2511,6 +2511,9 @@ function SyncOnChanges { elif [ $retval -eq 1 ]; then Logger "#### inotify error detected, waiting $MIN_WAIT seconds before running next sync." "ERROR" $retval sleep $MIN_WAIT + elif [ $retval -eq 127 ]; then + Logger "inotifywait could not load succesfully. Please check if all necessary libraries for inotifywait are present." "CRITICAL" + exit 1 fi done