Skip to content

Commit f6a82f4

Browse files
committed
Merge pull request puppetlabs#1432 from DavidS/modules-3140-use-hasrestart
(MODULES-3140) explicitly rely on hasrestart if no restart command is…
2 parents a271707 + 9aedb04 commit f6a82f4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

manifests/service.pp

+8-4
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,16 @@
3838
$_service_ensure = undef
3939
}
4040
}
41+
42+
$service_hasrestart = $service_restart == undef
43+
4144
if $service_manage {
4245
service { 'httpd':
43-
ensure => $_service_ensure,
44-
name => $service_name,
45-
enable => $service_enable,
46-
restart => $service_restart
46+
ensure => $_service_ensure,
47+
name => $service_name,
48+
enable => $service_enable,
49+
restart => $service_restart,
50+
hasrestart => $service_hasrestart,
4751
}
4852
}
4953
}

0 commit comments

Comments
 (0)