summaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-10-01 21:57:15 +0000
committermh <mh@immerda.ch>2008-10-01 21:57:15 +0000
commit800018f6422ad792191a1109c552fc52f87ea3df (patch)
treec4085a0b9eec06729510636858597e1860546290 /manifests/client.pp
parentf4f092398a1104ed223d94f7022671a9deccfa96 (diff)
fix rc.local adding, simplify the grep -> more errors possible, less tricky
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp2
1 files changed, 1 insertions, 1 deletions
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']{