From ff26961e82c141d99a1bd3ad83f9c53b9200a1b4 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 10 Oct 2018 02:19:38 +0200 Subject: [PATCH] Fixed BSD daemon mode --- dev/n_osync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/n_osync.sh b/dev/n_osync.sh index 3ad93b9..94bc4f5 100644 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -9,7 +9,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(C) 2013-2018 by Orsiris de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=1.3.0-beta1 -PROGRAM_BUILD=2018101007 +PROGRAM_BUILD=2018101008 IS_STABLE=no ##### Execution order #__WITH_PARANOIA_DEBUG @@ -2776,6 +2776,7 @@ function SyncOnChanges { elif [ "$LOCAL_OS" == "BSD" ]; then # BSD version of inotifywait does not support multiple --exclude statements inotifywait --exclude "$OSYNC_DIR" -qq -r -e create -e modify -e delete -e move -e attrib --timeout "$MAX_WAIT" "$watchDirectory" & + wait $! else inotifywait --exclude "$OSYNC_DIR" $RSYNC_PATTERNS -qq -r -e create -e modify -e delete -e move -e attrib --timeout "$MAX_WAIT" "$watchDirectory" & wait $!