Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

http://www.linux-ha.org/wiki/LSB_Resource_Agents

Make sure its compliant, should work as expected and return 0 for all except test # 5. Note, start with service stopped!

/etc/init.d/resource start ; echo "result: $?"

/etc/init.d/resource status ; echo "result: $?"

/etc/init.d/resource start ; echo "result: $?"

/etc/init.d/resource stop ; echo "result: $?"

/etc/init.d/resource status ; echo "result: $?"

/etc/init.d/resource stop ; echo "result: $?"

When adding a service, you should disable it from auto-starting at boot and let Pacemaker control the start/stop! This is paramount!

SystemCTL method

systemctl disable mariadb.service

ChkConfig Method

chkconfig asterisk off

Stop Service

service mariadb stop

Here is two examples, Asterisk and FOP2

pcs resource create Asterisk2 lsb:asterisk params binary="asterisk" canary_binary="astercany" config="/etc/asterisk/asterisk.conf" user="asterisk" group="asterisk" additional_parameters="-g -vvv" op monitor timeout="30"
 
pcs resource create FOP2 lsb:fop2
  • No labels