Posted by socialnicheguru on April 13, 2010 at 5:17am
How do I setup cron for each site created?
is there a way to do it for all created sites or do I have to do it for each site?
How do I setup cron for each site created?
is there a way to do it for all created sites or do I have to do it for each site?
Comments
Aegir Should Do This Automatically, But
You may find this information helpful:
http://groups.drupal.org/node/24854#cron
HAJ
HAJ
Running the drupa/cron.php file for each site I created via Aegi
So i usually have had to setup a cron for each of the sites I have created in the past.
I don't have to do that now? Cron or mysite.com/cron.php will automatically run? If not, how do I configure it so that all my sites cron.php are run?
Anietie Ekanem
Social Niche Guru Inc.
http://SocialNicheGuru.com
http://facebook.com/SocialNicheGuru
Aegir runs cron for your sites
I believe that Aegir takes over for all your sites under it and will run cron on those sites at a scheduled interval. Not sure of the interval nor could I find any documentation to verify this how it works, but think this is how it's done. One way to verify it is to enable the update module in one of your sites hosted by Aegir and see if you get an email from that site when a module or core update is available.
-Tim
elysia
That would be a problem. I'm rerunning the setup with alpha 7 tomorrow and will focus on this. I was under the impression that Aegir set up its own cron job. Maybe it catches any calls from the original tabs? Should it conflict with Elysiacron, that would definitely be a showstopper and I would expect peope to have run into it by now.
Aegir will run crom on your
Aegir will run crom on your sites if you enable the Cron feature :)
go to /admin/hosting/features
number of sites to run cron on in each batch is configurable at /admin/hosting/queues
no further action required
Can I set cron to run at different times for each site
in the Aegir setup is there a way for me to specify cron runs for one site more often than others?
I am using mailhandler in a site. It retrieves information during a cron job.
I installed http://drupal.org/elysian_cron which gives me fine tuned control over cron. However, elysian_cron runs on each cron run.
I can replace cron.php with elysian_cron.php but I think it would generally break the hostmater setup. Is that true?
Can I set cron for that one site to "* * * * * /usr/bin/wget -O - -q http://example.com/cron.php" so that elysian_cron could take over all cron functions for the site.
Thanks.
Anietie Ekanem
Social Niche Guru Inc.
http://SocialNicheGuru.com
http://facebook.com/SocialNicheGuru
also interested in different cron run times
I'm interested in this as well. I've got Open Atrium as one of my platforms and would like to run cron on that site every 5 minutes or so.
But if I change the frequency at /admin/hosting/queues to 5 minutes (default 1 hour), wouldn't that mean that each of my sites hosted in Aegir will run cron every 5 minutes? If that's the case then maybe it will unnecessarily use my server's resources.
Variable Crons
If it is only one or 2 sites which need their own cron timing, such as an Open Atrium based intranet you can just manually add them to the crontab. The cron job doesn't even need to be executed on the same box as the site or the aegir instance when it is called via wget. Most other solutions would add more complexity and are unlikely to be as easy to maintain.
If you have a lot of sites requiring regular crons, you could have a "hidden server" which only runs the cronjobs. Without knowing the architecture of your infrastructure it is hard to recommend the best way of doing this.