From e9e81ffacf2453c251e29a5f4f64a27dcd9327c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Robles?= Date: Fri, 31 May 2024 11:25:02 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Logs=20are=20being=20deleted=20w?= =?UTF-8?q?hen=20services=20are=20restarted=20(#354)=20(#355)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/912 --- ballot-box/templates/ballot-box.conf | 3 +++ eorchestra/templates/election-orchestra.conf | 5 ++++- iam/templates/supervisor_iam_celery.conf | 3 +++ iam/templates/supervisor_iam_celery_beat.conf | 3 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ballot-box/templates/ballot-box.conf b/ballot-box/templates/ballot-box.conf index f4eb3b9e..b58b3245 100644 --- a/ballot-box/templates/ballot-box.conf +++ b/ballot-box/templates/ballot-box.conf @@ -7,3 +7,6 @@ stopwaitsecs=3 user=ballotbox redirect_stderr=true stopasgroup=true +stdout_logfile=/var/log/supervisor/ballot-box.log +stdout_logfile_maxbytes=50MB +stdout_logfile_backups=10 diff --git a/eorchestra/templates/election-orchestra.conf b/eorchestra/templates/election-orchestra.conf index 3dcc02a7..faa60076 100644 --- a/eorchestra/templates/election-orchestra.conf +++ b/eorchestra/templates/election-orchestra.conf @@ -6,4 +6,7 @@ autorestart=true stopwaitsecs=3 user=eorchestra redirect_stderr=true -stopasgroup=true \ No newline at end of file +stopasgroup=true +stdout_logfile=/var/log/supervisor/eorchestra.log +stdout_logfile_maxbytes=50MB +stdout_logfile_backups=10 diff --git a/iam/templates/supervisor_iam_celery.conf b/iam/templates/supervisor_iam_celery.conf index 26c412e6..d31d908c 100644 --- a/iam/templates/supervisor_iam_celery.conf +++ b/iam/templates/supervisor_iam_celery.conf @@ -8,3 +8,6 @@ stopwaitsecs=3 user=iam environment=PATH="/home/iam/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" redirect_stderr=true +stdout_logfile=/var/log/supervisor/iam_celery.log +stdout_logfile_maxbytes=50MB +stdout_logfile_backups=10 \ No newline at end of file diff --git a/iam/templates/supervisor_iam_celery_beat.conf b/iam/templates/supervisor_iam_celery_beat.conf index 73ce294c..4b879be6 100644 --- a/iam/templates/supervisor_iam_celery_beat.conf +++ b/iam/templates/supervisor_iam_celery_beat.conf @@ -8,3 +8,6 @@ stopwaitsecs=3 user=iam environment=PATH="/home/iam/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" redirect_stderr=true +stdout_logfile=/var/log/supervisor/iam_celery_beat.log +stdout_logfile_maxbytes=50MB +stdout_logfile_backups=10