有没有办法抑制 rsync 期间 prigin 更改的警告?
$ rsync --archive server::somemodule/ /dest/dir
rsync: read errors mapping "/somefile" (in somemodule): No data available (61)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1532) [generator=3.0.6]
Run Code Online (Sandbox Code Playgroud)
确实,在 rsync 运行期间更改了 somefile,但我不在乎,我希望忽略此错误。例如 find 有 -ignore_readdir_race 标志,有没有与 rsync 类似的东西?
我想停止由套接字或文件或其他什么激活的作业,例如
# systemctl stop rsyslog
Warning: Stopping rsyslog.service, but it can still be activated by:
syslog.socket
Run Code Online (Sandbox Code Playgroud)
除了追踪所有激活器并单独停止之外,有没有办法将其与所有激活器一起停止?我不想永久禁用该作业,只需暂时停止它,直到它明确启动为止。