2013-03-04 17:02:41 -07:00
|
|
|
#!/bin/bash
|
2013-04-09 11:31:23 -07:00
|
|
|
service corosync start || /bin/true
|
|
|
|
sleep 2
|
|
|
|
while ! service pacemaker start; do
|
|
|
|
echo "Attempting to start pacemaker"
|
|
|
|
sleep 1;
|
|
|
|
done;
|
2013-03-04 17:02:41 -07:00
|
|
|
crm node online
|
2013-04-09 11:31:23 -07:00
|
|
|
sleep 2
|
|
|
|
while crm status | egrep -q 'Stopped$'; do
|
|
|
|
echo "Waiting for nodes to come online"
|
|
|
|
sleep 1
|
|
|
|
done
|