X-Git-Url: https://arthur.barton.de/gitweb/?p=ocf-ra.git;a=blobdiff_plain;f=OCFS2_DRBD;h=974b17119aba69ef5aecf3f61b1d97b035a91ed2;hp=495de5a5894ed99f1ff68eb94f505b2c73c093b2;hb=aee18e64840b6eef77adaadbb3c68d8a87995706;hpb=bcfb8d3f346f80d5e6d1eccac8fd78a8c3945c41 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 }