Page MenuHomeSoftware Heritage

service.pp
No OneTemporary

service.pp

# Manage fpm service
#
# === Parameters
#
# [*service_name*]
# name of the php-fpm service
#
# [*ensure*]
# 'ensure' value for the service
#
# [*enable*]
# Defines if the service is enabled
#
class php::fpm::service(
$service_name = $::php::params::fpm_service_name,
$ensure = 'running',
$enable = $::php::params::fpm_service_enable,
) inherits ::php::params {
if $caller_module_name != $module_name {
warning('php::fpm::service is private')
}
$reload = "service ${service_name} reload"
if $::osfamily == 'Debian' {
# Precise upstart doesn't support reload signals, so use
# regular service restart instead
$restart = $::lsbdistcodename ? {
'precise' => undef,
default => $reload
}
} else {
$restart = $reload
}
service { $service_name:
ensure => $ensure,
enable => $enable,
hasrestart => true,
restart => $restart,
hasstatus => true,
}
::Php::Extension <| |> ~> Service[$service_name]
}

File Metadata

Mime Type
text/plain
Expires
Jun 4 2025, 6:53 PM (12 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398856

Event Timeline