Fixed BSD daemon mode

This commit is contained in:
deajan 2018-10-10 02:19:38 +02:00
parent ca63bfabe0
commit ff26961e82
1 changed files with 2 additions and 1 deletions

View File

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