axkibe/lsyncd — Issue #99: OnMove event does not get triggered in example script
Author: willsha360
Created: 2011-11-20 21:56:36+00:00
State: open

Using lsyncd 2.0.4 with example config file lecho.lua, the OnMove event is never triggered.

bill@lxm-test-vm:~/sandbox/fileswarm$ mv hello goodbye

16:45:29 Normal: Event Delete spawns action '/bin/echo delete ^pathname'
delete /hello
16:45:29 Normal: Finished Delete on /home/bill/sandbox/fileswarm//hello = 0
16:45:29 Normal: Event Create spawns action '/bin/echo create ^pathname'
create /goodbye
16:45:29 Normal: Finished Create on /home/bill/sandbox/fileswarm//goodbye = 0

I tried increased the delay time in the config file to no avail. Then I moved the OnMove event in the config file so that it was listed before the OnCreate and OnDelete events, which worked.

I didn't see anywhere in the docs that stated this was needed. I would think that the order in which the events are listed shouldn't matter, but at least a note about this somewhere would be helpful.

Thanks.