From 23893e3d9d7aed224dfb55bc6c732739120d0209 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 25 Apr 2010 15:13:21 +0100 Subject: [PATCH] and enable monit from inittab: what could go wrong? Signed-off-by: Stephen Gran --- modules/monit/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/monit/manifests/init.pp b/modules/monit/manifests/init.pp index efa8689d..63ad03c8 100644 --- a/modules/monit/manifests/init.pp +++ b/modules/monit/manifests/init.pp @@ -1,7 +1,21 @@ class monit { package { "monit": ensure => installed } + augeas { "inittab": + context => "/files/etc/inittab", + changes => [ "set mo/runlevels 2345", + "set mo/action respawn", + "set mo/process \"/usr/sbin/monit -d 300 -I -c /etc/monit/monitrc -s /var/lib/monit/monit.state\"", + ], + onlyif => "match mo size == 0", + notify => Exec["init q"], + } + + file { + "/etc/rc2.d/S99monit": + ensure => absent; + "/etc/monit/": ensure => directory, owner => root, -- 2.39.2