chad.smith@canonical.com e8fb5a968d - removed health checks
- add-to and remove-from cluster a bit more robust for demo
2013-04-05 17:34:01 -04:00

14 lines
280 B
Bash
Executable File

#!/bin/bash
service corosync start || /bin/true
sleep 2
while ! service pacemaker start; do
echo "Attempting to start pacemaker"
sleep 1;
done;
crm node online
sleep 2
while crm status | egrep -q 'Stopped$'; do
echo "Waiting for nodes to come online"
sleep 1
done