Created
June 9, 2013 19:30
-
-
Save BugRoger/5744851 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf /var/log/nova/*.log | |
service mysql start | |
service rabbitmq-server start | |
cd /opt/stack/glance/bin | |
/opt/stack/glance/bin/glance-registry --config-file=/etc/glance/glance-registry.conf > /var/log/nova/glance-registry.log 2>&1 & | |
cd /opt/stack/glance/bin | |
/opt/stack/glance/bin/glance-api --config-file=/etc/glance/glance-api.conf > /var/log/nova/glance-api.log 2>&1 & | |
echo "Waiting for g-api to start..." | |
if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- http://127.0.0.1:9292; | |
do sleep 1; done"; then | |
echo "g-api did not start" | |
exit 1 | |
fi | |
echo "Done." | |
cd /opt/stack/keystone/bin | |
/opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug > /var/log/nova/keystone-all.log 2>&1 & | |
echo "Waiting for keystone to start..." | |
if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- http://127.0.0.1:5000; | |
do sleep 1; done"; then | |
echo "keystone did not start" | |
exit 1 | |
fi | |
echo "Done." | |
cd /opt/stack/cinder/bin/ | |
/opt/stack/cinder/bin/cinder-api --config-file /etc/cinder/cinder.conf > /var/log/nova/cinder-api.log 2>&1 & | |
cd /opt/stack/cinder/bin/ | |
/opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf > /var/log/nova/cinder-volume.log 2>&1 & | |
cd /opt/stack/cinder/bin/ | |
/opt/stack/cinder/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf > /var/log/nova/cinder-scheduler.log 2>&1 & | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-api > /var/log/nova/nova-api.log 2>&1 & | |
echo "Waiting for nova-api to start..." | |
if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- http://127.0.0.1:8774; | |
do sleep 1; done"; then | |
echo "nova-api did not start" | |
exit 1 | |
fi | |
echo "Done." | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-scheduler > /var/log/nova/nova-scheduler.log 2>&1 & | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-cert > /var/log/nova/nova-cert.log 2>&1 & | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-objectstore > /var/log/nova/nova-objectstore.log 2>&1 & | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-network > /var/log/nova/nova-network.log 2>&1 & | |
cd /opt/stack/nova/bin | |
/opt/stack/nova/bin/nova-compute > /var/log/nova/nova-compute.log 2>&1 & | |
cd /opt/stack/noVNC | |
/opt/stack/noVNC/utils/nova-novncproxy --config-file /etc/nova/nova.conf --web . > /var/log/nova/nova-novncproxy.log 2>&1 & | |
cd /opt/stack/nova/bin/ | |
/opt/stack/nova/bin/nova-xvpvncproxy --config-file /etc/nova/nova.conf > /var/log/nova/nova-xvpvncproxy.log 2>&1 & | |
cd /opt/stack/nova/bin/ | |
/opt/stack/nova/bin/nova-consoleauth > /var/log/nova/nova-consoleauth.log 2>&1 & | |
service apache2 start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kill -9 `ps aux | grep -v grep | grep /opt/stack | awk '{print $2}'` | |
service apache2 stop | |
service rabbitmq-server stop | |
service mysql stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment