do not repeat on rsync exitcode 12

This commit is contained in:
Axel Kittenberger 2010-11-24 10:49:29 +00:00
parent 4aff988954
commit 39471bd8aa
2 changed files with 4 additions and 4 deletions

View File

@ -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=-",

View File

@ -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)