Creating custom script and adding it to PCS Cluster resource group

Posted on

how can we add custom service as a pcs cluster resource.

we have created 2 services from systemd

[root@sss system]# cat mqm.service
[Unit]
Description=MQ_START
After=network.target

[Service]
Type=simple
ExecStart=/bin/bash /usr/bin/WrapperMQSTR.sh
RemainAfterExit=true
ExecStop=/bin/bash /usr/bin/WrapperMQSTP.sh

[Install]
WantedBy=multi-user.target
[root@sss system]#