Skip to content

Instantly share code, notes, and snippets.

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