1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
# @summary Overrides the default reload or status command for your PostgreSQL service
#
# @param service_reload Overrides the default reload command for your PostgreSQL service.
# @param service_status Overrides the default status check command for your PostgreSQL service.
define postgresql::server::instance::reload (
String[1] $service_status = $postgresql::server::service_status,
String[1] $service_reload = $postgresql::server::service_reload,
) {
exec { "postgresql_reload_${name}":
path => '/usr/bin:/usr/sbin:/bin:/sbin',
command => $service_reload,
onlyif => $service_status,
refreshonly => true,
require => Postgresql::Server::Instance::Service[$name],
}
}
|