Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
Created December 16, 2014 19:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Make a service restart more graceful
class classroom::master::wait_for_startup {
Service <| title == 'pe-puppetserver' |> {
hasrestart => true,
restart => "service pe-puppetserver restart && while true; do puppet status ${clientcert} --terminus rest && break; sleep 5; done"
}
Service <| title == 'pe-console-services' |> {
hasrestart => true,
restart => "service pe-console-services restart && while true; do curl http://localhost:4432/classifier-api/v1/last-class-update && break; sleep 5; done",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment