summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-11-25 12:28:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-11-25 12:28:22 -0200
commit643469bf0cff4acc5e0d4b838637046ef5b1be31 (patch)
tree1145d218eadbdfa68313efe60bbed6f14bf9b46f
parentd8ad03d2d3924ec47530ff0e8b2799bfe8b53b91 (diff)
downloadpuppet-mail-643469bf0cff4acc5e0d4b838637046ef5b1be31.tar.gz
puppet-mail-643469bf0cff4acc5e0d4b838637046ef5b1be31.tar.bz2
Gracefully restart sympa everyday
-rw-r--r--manifests/sympa.pp10
1 files changed, 10 insertions, 0 deletions
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'),
}