[Linux-cluster] clucron.sh (Re: Centralized Cron)

aberoham at gmail.com aberoham at gmail.com
Mon Jun 19 18:30:38 UTC 2006


As a simple work-around solution to the desire posted in an earlier thread
regarding how to best handle cluster-dependent cron jobs, I came up with the
following script.

The theory of operation is this: install the same cluster-depedent cronjobs
on all members but prefice the cron command with clucron.sh [cluster
service] [real cron cmd]. clucron.sh verifies the status of the cluster and
punts if the service that the cron job is supposed to run against is not
currently assigned and running on the particular cluster member. If the
particular cluster member IS running the specified service, the cron job
command is ran as usual.

Note: "clustat -s [service]" functionality required for the attached script
is missing in rgmanager-1.9.46 RPM. See
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=185952 and download Mr.
Hohberger's fixed RPMs before trying clucron.sh.

Abe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20060619/24cff3c5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clucron.sh
Type: application/x-sh
Size: 1195 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20060619/24cff3c5/attachment.sh>


More information about the Linux-cluster mailing list