Skip to content
Snippets Groups Projects
daemontools.pp 660 B
Newer Older
Adam Lewenberg's avatar
Adam Lewenberg committed
# Install daemontools and configure it to monitor /service on system boot.

class base::daemontools {
    package { 'daemontools': ensure => present }

    # RHEL 6 uses upstart.  Starting from inittab doesn't work any more.
    case $::lsbdistcodename {
        'santiago': {
            file { '/etc/init/daemontools.conf':
                source => 'puppet:///modules/base/daemontools/etc/init/daemontools.conf',
                notify => Exec['reload daemontools'],
            }
            exec { 'reload daemontools':
                command     => '/sbin/initctl reload daemontools',
                refreshonly => true,
            }
        }
    }
}