From f4708b48024c4210e09ae41f0c7d415ff3ac0ea5 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 18 Mar 2014 11:47:20 +0000 Subject: distbuild: Set log file size limit The 'log-keep' setting defaults to 10, so systems will contain a max 1GB of log data. Previously they would have eventually used up all of the available space in /var with log data. We may want to set 'log-level=info' as a default for future deployments, but for now it's useful being able to do detailed analysis of errors. --- distbuild.configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distbuild.configure b/distbuild.configure index 23aa35dd..eb2ef04a 100644 --- a/distbuild.configure +++ b/distbuild.configure @@ -67,6 +67,7 @@ install -d -o 0 -g 0 -m 0755 "$1/srv/distbuild" cat < "$1/etc/morph.conf" [config] log = /var/log/morph.log +log-max = 100M cachedir = /srv/distbuild tempdir = /srv/distbuild/tmp trove-host = $TROVE_ID @@ -90,6 +91,7 @@ then cat < "$1/etc/morph-controller.conf" [config] log = /var/log/morph-controller.log +log-max = 100M writeable-cache-server = http://${ARTIFACT_CACHE_SERVER}:8081/ worker = $WORKERS controller-helper-address = 127.0.0.1 @@ -101,6 +103,7 @@ EOF cat < "$1/etc/morph-controller-helper.conf" [config] log = /var/log/morph-controller-helper.log +log-max = 100M parent-port = 5656 parent-address = 127.0.0.1 EOF @@ -118,6 +121,7 @@ then cat < "$1/etc/morph-worker.conf" [config] log = /var/log/morph-worker.log +log-max = 100M controller-initiator-address = EOF @@ -131,6 +135,7 @@ EOF cat < "$1/etc/morph-worker-helper.conf" [config] log = /var/log/morph-worker-helper.log +log-max = 100M parent-address = 127.0.0.1 EOF -- cgit v1.2.1