Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/rietveld/manifests/init.pp

Issue 29726555: #9222 - Restart service rietveld daily (Closed)
Patch Set: Add missing ticket reference in comment section Created March 18, 2018, 2:29 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/rietveld/manifests/init.pp
diff --git a/modules/rietveld/manifests/init.pp b/modules/rietveld/manifests/init.pp
index 4a44bda5a82fa690d1874b5db2805cc6ecfcd415..78822741c45a442f6b25fc77488bc4b639479f17 100644
--- a/modules/rietveld/manifests/init.pp
+++ b/modules/rietveld/manifests/init.pp
@@ -119,4 +119,16 @@ class rietveld(
File['dev_appserver.py', '_python_runtime.py', 'config.ini'],
],
}
+
+ # http://hub.eyeo.com/issues/9222
+ cron {'rietveld#restart':
+ command => join([
+ 'service rietveld stop | grep -v "^Stopping rietveld"',
+ 'sleep 10',
+ 'service rietveld start | grep -v "^Starting rietveld"',
+ ], '; '),
+ hour => 5,
+ minute => 8,
+ user => 'root',
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld