On Sun, Oct 5, 2014 at 11:05 AM, David Mason <dma...@ryerson.ca> wrote:

> (I do updates via ssh)


If you are only doing updates via ssh, why run a cron job every 5 minutes?

You could make a wrapper script for Fossil that runs Fossil to perform the
sync, then "backgrounds" itself so the ssh session can disconnect and
update the "published area" and send the email.

If you are concerned about multiple near simultaneous updates, then when
the script "backgrounds", it could create a sentinel file in a specific
directory, wait 5 mins then check for other sentinels. If there are, it
removes the sentinel file and quits. If not, it updates the "published
area", sends the email then removes the sentinel file and quits.

This isn't perfect, but it reduces your processing to only when repo
content is needed.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to