Skip to content

Instantly share code, notes, and snippets.

@btm
Forked from fujin/canonical_service_name.rb
Created November 20, 2008 21:42
Show Gist options
  • Save btm/27222 to your computer and use it in GitHub Desktop.
Save btm/27222 to your computer and use it in GitHub Desktop.
service "apache2" do
name value_for_platform(
[ "CentOS", "RedHat", "Fedora", "SuSE" ] => { "default" => "httpd" },
"Debian" => { "default" => "apache2" },
"Ubuntu" => { "default" => "apache2", "8.10" => "apache2_lolz" }
)
supports :restart => true
action :enable
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment