summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-11-25 12:29:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-11-25 12:29:59 -0200
commit595e04da0b31952b8445ff170a24c661c7ce0639 (patch)
treed60db03c2b32b611e4e8a56c1ffe830b3344edd6
parent643469bf0cff4acc5e0d4b838637046ef5b1be31 (diff)
downloadpuppet-mail-595e04da0b31952b8445ff170a24c661c7ce0639.tar.gz
puppet-mail-595e04da0b31952b8445ff170a24c661c7ce0639.tar.bz2
Gracefully restart sympa everyday (2)
-rw-r--r--manifests/sympa.pp10
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/sympa.pp b/manifests/sympa.pp
index 044cc0a..5b042d5 100644
--- a/manifests/sympa.pp
+++ b/manifests/sympa.pp
@@ -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'] {