Sync scripts/.

This commit is contained in:
Adam Gandelman 2013-04-09 18:22:26 -07:00
parent 859e4aaf50
commit 30fa455444
4 changed files with 14 additions and 14 deletions

View File

@ -1 +1 @@
83
84

View File

@ -1,2 +1,13 @@
#!/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

View File

@ -1,13 +0,0 @@
#!/bin/bash
# Validate that service ports are active
HEALTH_DIR=`dirname $0`
SCRIPTS_DIR=`dirname $HEALTH_DIR`
. $SCRIPTS_DIR/scriptrc
set -e
# Grab any OPENSTACK_PORT* environment variables
openstack_ports=`env| awk -F '=' '(/OPENSTACK_PORT/){print $2}'`
for port in $openstack_ports
do
netstat -ln | grep -q ":$port "
done

View File

@ -1,2 +1,4 @@
#!/bin/bash
crm node standby
service pacemaker stop
service corosync stop