Added cron job to deployment documentation
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 24 May 2019 08:38:30 +0000 (10:38 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 24 May 2019 08:38:30 +0000 (10:38 +0200)
docker/README.md

index 3975282..6592643 100644 (file)
@@ -31,6 +31,15 @@ For a **full** deployment:
 - `./build_docker_img.sh full`
 - `./2server.sh sintel.blender.org`
 
+Install this cron job in `/etc/cron.d/blender-fund` on the host:
+
+    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+    MAILTO=your-address@example.com
+
+    30   * * * * root docker exec --user blender-fund blender-fund /manage.sh clearsessions
+    0    * * * * root docker exec --user blender-fund blender-fund /manage.sh clock_tick
+    */5  * * * * root docker exec --user blender-fund blender-fund /manage.sh flush_badger_queue --flush -v0
+
 
 ## TLS Certificates