From 643469bf0cff4acc5e0d4b838637046ef5b1be31 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 25 Nov 2012 12:28:22 -0200 Subject: Gracefully restart sympa everyday --- manifests/sympa.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/sympa.pp b/manifests/sympa.pp index d916d51..044cc0a 100644 --- a/manifests/sympa.pp +++ b/manifests/sympa.pp @@ -99,6 +99,16 @@ class mail::sympa { source => "puppet:///modules/mail/sympa/logrotate", } + # gracefully restart sympa everyday + cron { "sympa-restart": + command => "/etc/init.d/sympa restart > /dev/null 2>&1", + user => root, + hour => "*/3", + minute => "0", + ensure => absent, + require => Service['sympa'], + } + postfix::transport_regexp_snippet { 'sympa_transport_regexp': content => template('mail/postfix/sympa/transport_regexp.erb'), } -- cgit v1.2.3