Remove path to service binary

This commit removes the path to the service binary (which didn't
work on CentOS) and instead added a path parameter.
This commit is contained in:
Gary Larizza 2011-06-16 15:32:07 -07:00
parent f4291778cc
commit c15ef0ad1b

View file

@ -48,12 +48,13 @@ class mysql::server(
# the reason is that I need the service to be started before mods to the config
# file which can cause a refresh
exec{ 'mysqld-restart':
command => "/usr/sbin/service ${service_name} restart",
command => "service ${service_name} restart",
refreshonly => true,
path => '/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:',
}
File{
owner => 'mysql',
group => 'mysql',
require => Package['mysql-server'],
}
}
}