View Single Post
Old 15th September 2010, 12:13
tester321 tester321 is offline
Join Date: Jul 2009
Posts: 34
Thanks: 7
Thanked 2 Times in 2 Posts

Question: Why even copy the file (unless it has information in it that pertains to the updates to be acted on)? Why not just create the file every 5 minutes via cron on the secondary server using "touch"?

So, in effect, ispconfig would "flush" its cache (i.e., perform any pending updates) every 5 minutes on the secondary ... no matter what.

Why? Because I am not convinced that even doing an rsync every 5 minutes is going to "catch" the the /home/admispconfig/ispconfig/.run semaphore file -- i.e., it might be created/acted upon/deleted within a 5 minute cycle and rsync might never get to copy it from the primary.

Thoughts? (Sorry for all the questions, but I want to do to make sure I understand + use the most expedient method possible + keep additional "traffic" to a minimum)


Originally Posted by falko View Post
Yes; for example, you could set up a cron job that runs every 5 minutes. This tutorial should give you the idea:

Yes, it gets erased after the actions are performed.
Reply With Quote