Skip to content

Commit

Permalink
Correct mysql::server service definition for Ubuntu 11.04 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Nov 27, 2011
1 parent eeca962 commit d83d9f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vagrant_base/mysql/recipes/server.rb
Expand Up @@ -61,7 +61,9 @@

service "mysql" do
service_name value_for_platform([ "centos", "redhat", "suse", "fedora" ] => {"default" => "mysqld"}, "default" => "mysql")
if (platform?("ubuntu") && node.platform_version.to_f >= 10.04)
if (platform?("ubuntu") && node.platform_version.to_f >= 11.04)
provider Chef::Provider::Service::Upstart

restart_command "restart mysql"
stop_command "stop mysql"
start_command "start mysql"
Expand Down

0 comments on commit d83d9f2

Please sign in to comment.