mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-08 17:24:06 +00:00
do not repeat on rsync exitcode 12
This commit is contained in:
parent
4aff988954
commit
39471bd8aa
@ -2446,7 +2446,7 @@ local rsync_exitcodes = {
|
|||||||
[ 6] = "again",
|
[ 6] = "again",
|
||||||
[ 10] = "again",
|
[ 10] = "again",
|
||||||
[ 11] = "again",
|
[ 11] = "again",
|
||||||
[ 12] = "again",
|
-- [ 12] = "again", -- dont consistent failure, if e.g. target dir not there.
|
||||||
[ 14] = "again",
|
[ 14] = "again",
|
||||||
[ 20] = "again",
|
[ 20] = "again",
|
||||||
[ 21] = "again",
|
[ 21] = "again",
|
||||||
@ -2494,7 +2494,7 @@ local default_rsync = {
|
|||||||
local config = inlet.getConfig()
|
local config = inlet.getConfig()
|
||||||
spawn(elist, "/usr/bin/rsync",
|
spawn(elist, "/usr/bin/rsync",
|
||||||
"<", names,
|
"<", names,
|
||||||
"-vv",
|
"-v",
|
||||||
"--delete",
|
"--delete",
|
||||||
config.rsyncOps, "-r",
|
config.rsyncOps, "-r",
|
||||||
"--include-from=-",
|
"--include-from=-",
|
||||||
|
@ -16,7 +16,7 @@ local trgdir = tdir.."trg/"
|
|||||||
|
|
||||||
posix.mkdir(srcdir)
|
posix.mkdir(srcdir)
|
||||||
posix.mkdir(trgdir)
|
posix.mkdir(trgdir)
|
||||||
local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir)
|
local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir,"-log","all")
|
||||||
|
|
||||||
cwriteln("waiting for Lsyncd to startup")
|
cwriteln("waiting for Lsyncd to startup")
|
||||||
posix.sleep(1)
|
posix.sleep(1)
|
||||||
@ -271,7 +271,7 @@ for ai=1,100 do
|
|||||||
end
|
end
|
||||||
|
|
||||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||||
posix.sleep(10)
|
posix.sleep(20)
|
||||||
|
|
||||||
cwriteln("killing the Lsyncd daemon")
|
cwriteln("killing the Lsyncd daemon")
|
||||||
posix.kill(pid)
|
posix.kill(pid)
|
||||||
|
Loading…
Reference in New Issue
Block a user