lsyncd はログファイルに /pool/www/yiiazertag/azertag/css/ フォルダを使用します。
Wed Nov 6 13:27:11 2019 Normal: --- Startup, daemonizing ---
Wed Nov 6 13:27:11 2019 Normal: --- Startup ---
Wed Nov 6 13:27:11 2019 Normal: recursive startup rsync: /pool/www/yiiazertag/azertag/css/ -> [email protected]:/pool/www/yiiazertag/azertag/css/
sending incremental file list
sent 1,697 bytes received 15 bytes 3,424.00 bytes/sec
total size is 974,876 speedup is 569.44
Wed Nov 6 13:27:11 2019 Normal: Startup of /pool/www/yiiazertag/azertag/css/ -> [email protected]:/pool/www/yiiazertag/azertag/css/ finished.
それは問題ではありません。
root@main2:/ # service lsyncd status
lsyncd is running as pid 2044.
lsyncdは/pool/www/yiiazertag/azertag/newsimages/フォルダで動作します。
Wed Nov 6 15:01:38 2019 Normal: --- Startup, daemonizing ---
Wed Nov 6 15:01:38 2019 Normal: --- Startup ---
いいえ。それはすべてです。 lsyncdが実行されていません。
root@main2:/ # service lsyncd status
lsyncd is not running.
root@main2:/ # cat /usr/local/etc/lsyncd.conf
settings {
logfile = "/var/log/lsyncd.log",
statusFile = "/var/log/lsyncd.status",
statusInterval = 1,
maxProcesses = 1,
insist = 1,
}
sync{
default.rsync,
delay = 0,
source = "/pool/www/yiiazertag/azertag/newsimages/",
target = "[email protected]:/pool/www/yiiazertag/azertag/newsimages/",
rsync = {
archive = true,
compress = true,
acls = true,
verbose = true,
owner = true,
group = true,
perms = true,
temp_dir="/tmp/",
-- binary = "/usr/local/bin/rsync",
-- sparse = true,
-- update = true,
-- protect_args = false,
-- whole_file = false,
-- links = true,
_extra = { "--omit-dir-times" },
rsh = "ssh -p 44400 -o StrictHostKeyChecking=no",
-- rsync_path = "/usr/local/bin/sudo /usr/local/bin/rsync"
},
delete = true
}
CSSフォルダはコピーできますが、newsimagesフォルダはコピーできません。 Lsyncd サービスが停止しました。助けてください。
root@main2:/ # sysctl kern.maxfiles kern.maxfilesperproc kern.openfiles
kern.maxfiles: 500000
kern.maxfilesperproc: 490000
kern.openfiles: 274