From 800018f6422ad792191a1109c552fc52f87ea3df Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 1 Oct 2008 21:57:15 +0000 Subject: fix rc.local adding, simplify the grep -> more errors possible, less tricky --- manifests/client.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/client.pp') diff --git a/manifests/client.pp b/manifests/client.pp index 86babaa..dcec13e 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -96,7 +96,7 @@ class munin::client::openbsd inherits munin::client::base { } exec{'enable_munin_on_boot': command => 'echo "if [ -x /opt/munin/sbin/munin-node ]; then echo -n \' munin\'; /opt/munin/sbin/munin-node; fi" >> /etc/rc.local', - unless => 'grep -q "if [ -x /opt/munin/sbin/munin-node ]; then echo -n \' munin\'; /opt/munin/sbin/munin-node; fi" /etc/rc.local', + unless => 'grep -q "munin-node" /etc/rc.local', require => File['/var/run/munin'], } Service['munin-node']{ -- cgit v1.2.3