Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

here's a hack you can use to restart one subsystem:

#!/bin/bash

srv=$1
if [ $# -eq 2 ]
then
    action=$2
else
    action=restart
fi
echo usage action $action
cd /etc/init/; for i in $(ls $srv-* | cut -d \. -f 1 | xargs); do sudo service $i $action; done

and invoke with e.g. 'nova' or 'neutron' or 'cinder' etc.