--- inputs/ISS/wwwnext.cf (revision 744)
+++ inputs/ISS/wwwnext.cf (revision 745)
RPMInstallCommand = ( "/usr/bin/yum -y install %s" )
classes:
- wwwnext_hb_running = ( ReturnsZeroShell(/sbin/pidof heartbeat >/dev/null) )
+ wwwnext_hb_running = ( ReturnsZeroShell(/sbin/pidof heartbeat >/dev/null) )
+ wwwnext_mod_loaded = ( ReturnsZeroShell(/sbin/lsmod | /bin/grep drbd >/dev/null) )
directories:
/etc/ha.d mode=755 owner=0 group=0
shellcommands:
!wwwnext_hb_running::
"/sbin/service heartbeat start"
+ !wwwnext_mod_loaded::
+ "/sbin/modprobe drbd"