OpenStack: useful start, stop and restart nova compute one-liners

I find the following one liners useful for starting, stopping and restarting all the nova-* compute services – handy for development when you’re modifying config files, etc.

Stop

ls /etc/init.d/nova-* | cut -d’/’ -f4 | while read N; do sudo stop ${N}; done

Start

ls /etc/init.d/nova-* | cut -d’/’ -f4 | while read N; do sudo start ${N}; done

Restart

ls /etc/init.d/nova-* | cut -d’/’ -f4 | while read N; do sudo restart ${N}; done

Advertisements

Tagged: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: