diff options
author | mh <mh@immerda.ch> | 2009-03-02 22:55:10 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2009-03-02 22:55:10 +0000 |
commit | 955947ce7db6d7f6a1a3b3ac53ca0932b28d1dac (patch) | |
tree | 6aba69f297bbb96dc101567671362eacf1dc8965 /manifests/client.pp | |
parent | 97af5ac10fb99b97a971c101732af7de681bcd57 (diff) |
added munin logfile cleanup cron
Diffstat (limited to 'manifests/client.pp')
-rw-r--r-- | manifests/client.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index db5587f..c59369b 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -106,6 +106,13 @@ class munin::client::openbsd inherits munin::client::base { hasrestart => false, require => [ File['/var/run/munin'], File['/var/log/munin'] ], } + + cron{'clean_munin_logfile': + command => 'rm /var/log/munin/munin-node.log; kill -HUP `cat /var/run/munin/munin-node.pid`', + minute => 0, + hour => 2, + weekday => 0, + } } class munin::client::darwin { |