Forum: Cfengine Help
Subject: Re: backgrounding methods
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,18002,18009#msg-18009
I rewrote the bundle to background the file copy, but I get lots of these
errors and it seems to take longer than doing it without the backgrounding:
cfnew seems to have been corrupted in transit (dest 0 and src 326), aborting!
directory in the way?
failed attempt to exploit a race?
System error for cf_rename: "No such file or directory"
I think I am not understanding how backgrounding works in this case.
bundle agent rerun {
vars:
"hostnames" slist => { "@(global.hosts)" };
"dropbox" string => "$(sys.workdir)/dropbox";
files:
"/tmp/foo/$(hostnames)"
comment => "copy all files in client's dropbox",
copy_from => server_copy("$(dropbox)","@(hostnames)"),
depth_search => recurse("inf"),
action => background;
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine