2013-08-27 22:43:47 +02:00
|
|
|
# PRIVATE CLASS: do not use directly
|
|
|
|
class postgresql::server::reload {
|
|
|
|
$service_name = $postgresql::server::service_name
|
|
|
|
$service_status = $postgresql::server::service_status
|
2014-09-11 01:29:48 +02:00
|
|
|
$service_reload = $postgresql::server::service_reload
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2014-07-02 16:45:07 +02:00
|
|
|
exec { 'postgresql_reload':
|
|
|
|
path => '/usr/bin:/usr/sbin:/bin:/sbin',
|
2014-09-11 01:29:48 +02:00
|
|
|
command => $service_reload,
|
2014-07-02 16:45:07 +02:00
|
|
|
onlyif => $service_status,
|
|
|
|
refreshonly => true,
|
|
|
|
require => Class['postgresql::server::service'],
|
2013-08-27 22:43:47 +02:00
|
|
|
}
|
|
|
|
}
|