]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Gracefully restart sympa everyday
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Nov 2012 14:28:22 +0000 (12:28 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 25 Nov 2012 14:28:22 +0000 (12:28 -0200)
manifests/sympa.pp

index d916d513132c8cfb5e6603b38c61c130f4f7e546..044cc0add4dcdc56a8d4ff47bd96e0f4c6558edb 100644 (file)
@@ -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'),
   }