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:
parent
f4291778cc
commit
c15ef0ad1b
1 changed files with 3 additions and 2 deletions
|
@ -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'],
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue