From 8eff28b922f480889081d0c496e023748fc973b5 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 22 Oct 2010 10:40:59 +0000 Subject: [PATCH] --- lsyncd-conf.lua | 2 +- lsyncd.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,