blob: 8b7b590d1bc236f8f3b4f819c5c7e9dc75a4f00d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#
# Adds autorestart extension to apache on crash
#
class site_apache::common::autorestart {
file {
'/etc/systemd/system/apache2.service.d':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755';
# Add .placeholder file so directory doesn't get removed by
# deb-systemd-helper in a package removal postrm, see
# issue #8841 for more details.
'/etc/systemd/system/apache2.service.d/.placeholder':
ensure => file,
owner => 'root',
group => 'root',
mode => '0755';
}
::systemd::unit_file { 'apache2.service.d/autorestart.conf':
source => 'puppet:///modules/site_apache/autorestart.conf',
require => [
File['/etc/systemd/system/apache2.service.d'],
Service['apache'],
]
}
}
|