mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-10 15:20:58 +00:00
This commit is contained in:
parent
7b0adbef69
commit
8eff28b922
@ -63,6 +63,6 @@ rsync = {
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
sync(slowbash, "s", "d")
|
sync("s", "d", slowbash)
|
||||||
|
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ end
|
|||||||
-- has been spawned as replacement (e.g. retry) or 0 if
|
-- has been spawned as replacement (e.g. retry) or 0 if
|
||||||
-- finished/ok.
|
-- finished/ok.
|
||||||
--
|
--
|
||||||
local function startup_collector(pid, exitcode)
|
function startup_collector(pid, exitcode)
|
||||||
if exitcode ~= 0 then
|
if exitcode ~= 0 then
|
||||||
log(ERROR, "Startup process", pid, " failed")
|
log(ERROR, "Startup process", pid, " failed")
|
||||||
lsyncd.terminate(-1) -- ERRNO
|
lsyncd.terminate(-1) -- ERRNO
|
||||||
@ -257,7 +257,7 @@ end
|
|||||||
--
|
--
|
||||||
-- @param TODO
|
-- @param TODO
|
||||||
--
|
--
|
||||||
function sync(actions, source_dir, target_identifier)
|
function sync(source_dir, target_identifier, actions)
|
||||||
local o = { actions = actions,
|
local o = { actions = actions,
|
||||||
source = source_dir,
|
source = source_dir,
|
||||||
targetident = target_identifier,
|
targetident = target_identifier,
|
||||||
|
Loading…
Reference in New Issue
Block a user