From: Alexander Barton Date: Tue, 22 Sep 2009 15:27:15 +0000 (+0200) Subject: OCFS2_DRBD: New parameter "reload_cron" X-Git-Url: https://arthur.barton.de/gitweb/?p=ocf-ra.git;a=commitdiff_plain;h=aee18e64840b6eef77adaadbb3c68d8a87995706;ds=sidebyside OCFS2_DRBD: New parameter "reload_cron" If "reload_cron" is set to "1" (true), the OCFS2_DRBD resource agent makes sure that the CRON daemon re-examins the /etc/cron.d directory after the OCFS2 filesystem has been mounted or unmounted. --- diff --git a/OCFS2_DRBD b/OCFS2_DRBD index 495de5a..974b171 100755 --- a/OCFS2_DRBD +++ b/OCFS2_DRBD @@ -36,7 +36,7 @@ meta_data() { -1.4 +1.5 This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. @@ -59,6 +59,11 @@ This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. Mountpoint for OCFS2 filesystem + + +Reload CRON configuration +Reload CRON configuration after mounting OCFS2 filesystem + @@ -88,6 +93,9 @@ ClusterFS_start() { if [ $? -ne 0 ]; then return $OCF_ERR_GENERIC fi + if [ "$OCF_RESKEY_reload_cron" = "1" ]; then + [ -d /etc/cron.d ] && touch /etc/cron.d + fi return $OCF_SUCCESS } @@ -120,6 +128,9 @@ ClusterFS_stop() { fi fi drbdadm secondary "$OCF_RESKEY_drbd" + if [ "$OCF_RESKEY_reload_cron" = "1" ]; then + [ -d /etc/cron.d ] && touch /etc/cron.d + fi return $OCF_SUCCESS }