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.
<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="OCFS2_DRBD">
<?xml version="1.0"?>
<!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
<resource-agent name="OCFS2_DRBD">
<longdesc lang="en">
This Resource Agent starts and stops OCFS2 file systems located on DRBD devices.
<longdesc lang="en">
This Resource Agent starts and stops OCFS2 file systems located on DRBD devices.
<shortdesc lang="en">Mountpoint for OCFS2 filesystem</shortdesc>
<content type="string" default="" />
</parameter>
<shortdesc lang="en">Mountpoint for OCFS2 filesystem</shortdesc>
<content type="string" default="" />
</parameter>
+<parameter name="reload_cron" unique="1">
+<content type="boolean" default="0" />
+<shortdesc lang="en">Reload CRON configuration</shortdesc>
+<longdesc lang="en">Reload CRON configuration after mounting OCFS2 filesystem</longdesc>
+</parameter>
if [ $? -ne 0 ]; then
return $OCF_ERR_GENERIC
fi
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
fi
fi
drbdadm secondary "$OCF_RESKEY_drbd"
fi
fi
drbdadm secondary "$OCF_RESKEY_drbd"
+ if [ "$OCF_RESKEY_reload_cron" = "1" ]; then
+ [ -d /etc/cron.d ] && touch /etc/cron.d
+ fi