From 0a02f36748e254e39c4c21446ebc58a354cf780e Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 5 Jan 2012 21:59:27 +0000 Subject: [PATCH] Let's try one last time to get it right. Signed-off-by: Stephen Gran --- modules/monit/manifests/init.pp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/monit/manifests/init.pp b/modules/monit/manifests/init.pp index b4e31fcbb..7792b086f 100644 --- a/modules/monit/manifests/init.pp +++ b/modules/monit/manifests/init.pp @@ -1,9 +1,10 @@ class monit { package { "monit": ensure => installed } - $cmd = $::lsbdistcodename == 'sid' or $::lsbmajdistrelease > '6' ? { - true => '/usr/bin/monit', - default => '/usr/sbin/monit', + $cmd = $::lsbdistcodename ? { + 'sid' => '/usr/bin/monit', + 'wheezy' => '/usr/bin/monit', + default => '/usr/sbin/monit', } augeas { "inittab": @@ -12,11 +13,9 @@ class monit { "set mo/action respawn", "set mo/process \"$cmd -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/K99monit": # ensure => "../init.d/monit"; -- 2.20.1