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', |
+ } |
} |