[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[Linux-cluster] clucron.sh (Re: Centralized Cron)
- From: aberoham gmail com
- To: Linux-cluster redhat com
- Cc:
- Subject: [Linux-cluster] clucron.sh (Re: Centralized Cron)
- Date: Mon, 19 Jun 2006 11:30:38 -0700
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]