diff --git a/lsyncd-conf.lua b/lsyncd-conf.lua index 3374123..6bbb680 100644 --- a/lsyncd-conf.lua +++ b/lsyncd-conf.lua @@ -63,6 +63,6 @@ rsync = { end } -sync(slowbash, "s", "d") +sync("s", "d", slowbash) diff --git a/lsyncd.lua b/lsyncd.lua index 5c82672..f84f2e2 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -238,7 +238,7 @@ end -- has been spawned as replacement (e.g. retry) or 0 if -- finished/ok. -- -local function startup_collector(pid, exitcode) +function startup_collector(pid, exitcode) if exitcode ~= 0 then log(ERROR, "Startup process", pid, " failed") lsyncd.terminate(-1) -- ERRNO @@ -257,7 +257,7 @@ end -- -- @param TODO -- -function sync(actions, source_dir, target_identifier) +function sync(source_dir, target_identifier, actions) local o = { actions = actions, source = source_dir, targetident = target_identifier,