X-Git-Url: https://arthur.barton.de/gitweb/?p=ocf-ra.git;a=blobdiff_plain;f=OCFS2_DRBD;h=241eb97313c3a190db4b2c01f48853d1a93e2032;hp=60297f2b394b7d88ae5f1fdf26de39bf74a9479c;hb=fa11ff6d013ad40c3290e6d724fae6040b9b7ca0;hpb=6b784cd756da2e1ac6fb923aace3e9759298b2b9 diff --git a/OCFS2_DRBD b/OCFS2_DRBD index 60297f2..241eb97 100755 --- a/OCFS2_DRBD +++ b/OCFS2_DRBD @@ -35,8 +35,8 @@ meta_data() { cat < - -1.3 + +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 after mounting OCFS2 filesystem +Reload CRON configuration + + @@ -66,7 +71,7 @@ This Resource Agent starts and stops OCFS2 file systems located on DRBD devices. - + END @@ -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 }