Skip to content

Commit

Permalink
add new file scripts/monitor_nova_service.sh
Browse files Browse the repository at this point in the history
monitor_nova_service.sh
  • Loading branch information
livemoon committed Dec 6, 2011
1 parent ba0211f commit b2ffe7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/monitor_nova_service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

for i in `sudo /data/stack/nova/bin/nova-manage service list | awk '/nova-compute.*enable.*XXX/ {print $2}'`
do
ssh $i "sudo su -c \"/data/stack/openstack/scripts/restart_nova-compute.sh\" stack"
done

0 comments on commit b2ffe7b

Please sign in to comment.