clucron.sh (Re: Centralized Cron)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


Attachment: clucron.sh
Description: Bourne shell script

--

Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux