Skip to content

Instantly share code, notes, and snippets.

@javiyt
Created September 20, 2013 11:34
Show Gist options
  • Save javiyt/6636222 to your computer and use it in GitHub Desktop.
Save javiyt/6636222 to your computer and use it in GitHub Desktop.
Puppet to keep services alive
* * * * * puppet apply --detailed-exitcodes services.pp || [ $? -eq 2 ]
Exec
{
path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ]
}
service
{
"mysql":
ensure => running,
}
service
{
"apache2":
ensure => running,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment