summaryrefslogtreecommitdiff
path: root/puppet/modules/site_apache/manifests/common/autorestart.pp
blob: aa13d4efb52cc30e3c5d748f05b349e330ec5158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# Adds autorestart extension to apache on crash
#
class site_apache::common::autorestart {

  include ::systemd
  file { '/etc/systemd/system/apache2.service.d/autorestart.conf':
    source  => 'puppet:///modules/site_apache/autorestart.conf',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    require => Service['apache'],
    notify  => Exec['systemctl-daemon-reload']
  }
}