Skip to content

Instantly share code, notes, and snippets.

@mrmoje
Created May 28, 2014 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmoje/0d71a90089c5f1c4de2e to your computer and use it in GitHub Desktop.
Save mrmoje/0d71a90089c5f1c4de2e to your computer and use it in GitHub Desktop.
multi service restart loop with upstart
#e.g for #OpenStack nova
for i in $( ls /etc/init/nova* | xargs -n 1 basename | sed 's/.conf//g' ); do sudo service $i restart; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment