~openstack-ubuntu-testing/charms/precise/mysql/trunk

« back to all changes in this revision

Viewing changes to scripts/add_to_cluster

  • Committer: Marco Ceppi
  • Date: 2013-05-30 16:00:47 UTC
  • mfrom: (91.2.17 mysql)
  • Revision ID: marco@ceppi.net-20130530160047-i68avmlzo6go3sny
ha-support: https://code.launchpad.net/~openstack-charmers/charms/precise/mysql/ha-support/+merge/165059

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
service corosync start || /bin/true
 
3
sleep 2
 
4
while ! service pacemaker start; do
 
5
    echo "Attempting to start pacemaker"
 
6
    sleep 1;
 
7
done;
 
8
crm node online
 
9
sleep 2
 
10
while crm status | egrep -q 'Stopped$'; do
 
11
    echo "Waiting for nodes to come online"
 
12
    sleep 1
 
13
done