Delay for watchmedo command?

80 views
Skip to first unread message

Michał Pasternak

unread,
Jun 17, 2012, 6:59:22 AM6/17/12
to watchdo...@googlegroups.com
Hi,

I am using "watchmedo" to do some monitoring and to restart gunicorn server in case anything changes. As it came out, watchmedo is not doing any kind of buffering of the changes and just restarts the gunicorn server every time I put a new file. For some single edits - that's okay, but if I perform "cp -R" on a directory, my gunicorn process is restarted for every single file (about 300 HUP signals), thus DoSing the server for a minute. Is there any delay parameter for command line watchmedo command that would wait for a while before executing given command? 

Thanks,
-- 
m

Reply all
Reply to author
Forward
0 new messages