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: Created March 18, 2018, 2:25 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..35432cb4a677caabebf7ed8b4721af4489c318f5 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'],
],
}
+
+ #
+ 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