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

index 044cc0add4dcdc56a8d4ff47bd96e0f4c6558edb..5b042d536352d8565ad8708c715a5a7ba69413b5 100644 (file)
@@ -105,7 +105,7 @@ class mail::sympa {
     user     => root,
     hour     => "*/3",
     minute   => "0",
-    ensure   => absent,
+    ensure   => present,
     require  => Service['sympa'],
   }
 
@@ -185,8 +185,12 @@ class mail::sympa::disabled inherits mail::sympa {
   include mail::web::sympa::disabled
 
   Service["sympa"] {
-    ensure    => stopped,
-    enable    => false,
+    ensure => stopped,
+    enable => false,
+  }
+
+  Cron["sympa-restart"] {
+    ensure  => absent,
   }
 
   Postfix::Transport_regexp_snippet['sympa_transport_regexp'] {