Mobrovac has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/336647 )
Change subject: Zotero: Restart the service every three days ...................................................................... Zotero: Restart the service every three days We have been having problems with Zotero OOM'ing frequently. Since it happens often and the only cure is to restart it, do it automatically every three days to keep it in check (and to keep our sanity). Change-Id: Id3f38b942ab5a913f0cadeaf043327bedcd1f3db --- A modules/zotero/files/cron.file M modules/zotero/manifests/init.pp 2 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/47/336647/1 diff --git a/modules/zotero/files/cron.file b/modules/zotero/files/cron.file new file mode 100644 index 0000000..644059c --- /dev/null +++ b/modules/zotero/files/cron.file @@ -0,0 +1 @@ +0 0 */3 * * * root /usr/sbin/service zotero restart > /dev/null 2>&1 diff --git a/modules/zotero/manifests/init.pp b/modules/zotero/manifests/init.pp index d7541b9..3f5f913 100644 --- a/modules/zotero/manifests/init.pp +++ b/modules/zotero/manifests/init.pp @@ -116,6 +116,14 @@ notify => Service['zotero'], } + file { '/etc/cron.d/zotero-restart': + mode => '0444', + owner => 'root', + group => 'root', + source => 'puppet:///modules/zotero/cron.file', + require => Service['zotero'], + } + service { 'zotero': ensure => running, hasstatus => true, -- To view, visit https://gerrit.wikimedia.org/r/336647 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id3f38b942ab5a913f0cadeaf043327bedcd1f3db Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Mobrovac <mobro...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits