From b93448f682717735852a9f7cbc7c2e14e4b59532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 17 May 2017 10:08:27 +0200 Subject: [PATCH] Start cron when starting the Cloud docker This will regularly run logrotate, preventing the build-up of log files of multiple gigabytes. --- docker/4_run/docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/4_run/docker-entrypoint.sh b/docker/4_run/docker-entrypoint.sh index 3c99411..57cf048 100755 --- a/docker/4_run/docker-entrypoint.sh +++ b/docker/4_run/docker-entrypoint.sh @@ -18,6 +18,9 @@ if [ ! -f /installed ]; then touch /installed fi +# Make sure that log rotation works. +service cron start + if [ "$DEV" = "true" ]; then echo "Running in development mode"