mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +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",
|
||||
[ 10] = "again",
|
||||
[ 11] = "again",
|
||||
[ 12] = "again",
|
||||
-- [ 12] = "again", -- dont consistent failure, if e.g. target dir not there.
|
||||
[ 14] = "again",
|
||||
[ 20] = "again",
|
||||
[ 21] = "again",
|
||||
@ -2494,7 +2494,7 @@ local default_rsync = {
|
||||
local config = inlet.getConfig()
|
||||
spawn(elist, "/usr/bin/rsync",
|
||||
"<", names,
|
||||
"-vv",
|
||||
"-v",
|
||||
"--delete",
|
||||
config.rsyncOps, "-r",
|
||||
"--include-from=-",
|
||||
|
@ -16,7 +16,7 @@ local trgdir = tdir.."trg/"
|
||||
|
||||
posix.mkdir(srcdir)
|
||||
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")
|
||||
posix.sleep(1)
|
||||
@ -271,7 +271,7 @@ for ai=1,100 do
|
||||
end
|
||||
|
||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||
posix.sleep(10)
|
||||
posix.sleep(20)
|
||||
|
||||
cwriteln("killing the Lsyncd daemon")
|
||||
posix.kill(pid)
|
||||
|
Loading…
Reference in New Issue
Block a user