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