Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392042
service.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1005 B
Subscribers
None
service.pp
View Options
# 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
Details
Attached
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
Attached To
R140 puppet-puppet-php
Event Timeline
Log In to Comment