Muehlenhoff has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/294929

Change subject: Restart exim daily on Monday to Friday
......................................................................

Restart exim daily on Monday to Friday

This allows to pick up updated libraries automatically (e.g. in case of security
updates or other bugfix updates in a stable release).

Exim restarts are reliable and stateless.

Bug: T135991
Change-Id: Iefc9517fe870a5a3e1ac1d448a17d6b65c569037
---
M modules/standard/manifests/mail/sender.pp
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/29/294929/1

diff --git a/modules/standard/manifests/mail/sender.pp 
b/modules/standard/manifests/mail/sender.pp
index b3cfbfb..d12b25e 100644
--- a/modules/standard/manifests/mail/sender.pp
+++ b/modules/standard/manifests/mail/sender.pp
@@ -3,4 +3,15 @@
         queuerunner => 'queueonly',
         config      => template("mail/exim4.minimal.${::realm}.erb"),
     }
+
+    # Perform a daily restart on Monday to Friday to pick up updated
+    # versions in linked-in libraries etc.
+    cron { 'exim4_daily_restart':
+        ensure  => present,
+        command => '/usr/sbin/service exim4 restart',
+        user    => 'root',
+        hour    => fqdn_rand(23, 'exim4_daily_restart'),
+        minute  => fqdn_rand(59, 'exim4_daily_restart'),
+        weekday => '1-5',
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/294929
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iefc9517fe870a5a3e1ac1d448a17d6b65c569037
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Muehlenhoff <mmuhlenh...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to