On 07/15/2011 04:01 PM, Sebastian Kaps wrote: > Hi! > > I'm looking for a way to run a certain subset of cronjobs only on the > active node of our cluster. It seems, the best way to achieve this would > be to use different crontab files and to switch them depending on the > node's state (i.e. active/standby). > > I've found an announcement for a "cronjobs" resource agent by a user called > "pica1dilly", dating back to 2008, which looks like this would be perfect > for the job. Unfortunately, the download location is not available anymore > and the whole project looks pretty dead. > > Is there a better way to achieve this? >
Yes. Do "ocf ra info ocf:heartbeat:symlink" or "man ocf_heartbeat_symlink" for more information, and keep entries in your cron.d as cluster-managed symlinks. Hope this is useful, Cheers, Florian
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker