diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-11-25 12:29:59 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-11-25 12:29:59 -0200 |
commit | 595e04da0b31952b8445ff170a24c661c7ce0639 (patch) | |
tree | d60db03c2b32b611e4e8a56c1ffe830b3344edd6 | |
parent | 643469bf0cff4acc5e0d4b838637046ef5b1be31 (diff) | |
download | puppet-mail-595e04da0b31952b8445ff170a24c661c7ce0639.tar.gz puppet-mail-595e04da0b31952b8445ff170a24c661c7ce0639.tar.bz2 |
Gracefully restart sympa everyday (2)
-rw-r--r-- | manifests/sympa.pp | 10 |
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'] { |