[Pacemaker] Resource Agent for Cron Jobs

Florian Haas florian.haas at linbit.com
Fri Jul 15 16:45:48 EDT 2011


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110715/109957f5/attachment-0003.sig>


More information about the Pacemaker mailing list