From 457572b365d15d81db0cdf901b9cc102a1dc5e5d Mon Sep 17 00:00:00 2001 From: Glenn Date: Fri, 16 May 2025 16:46:25 +0200 Subject: [PATCH] refactor: split supervisord configuration --- Dockerfile | 1 + supervisor.conf.d/apache2.conf | 8 ++++++++ supervisor.conf.d/cron.conf | 8 ++++++++ supervisord.conf | 13 ------------- 4 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 supervisor.conf.d/apache2.conf create mode 100644 supervisor.conf.d/cron.conf diff --git a/Dockerfile b/Dockerfile index 4d7df5e..1253f1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -108,6 +108,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ supervisor \ && rm -rf /var/lib/apt/lists/* \ && mkdir /var/log/supervisord /var/run/supervisord +COPY supervisor.conf.d/* /etc/supervisor/conf.d/ COPY supervisord.conf /etc/supervisord.conf # COPY --chmod=755 ./hooks/gx.post-installation.www.sh /app/gx.post-installation.www.sh diff --git a/supervisor.conf.d/apache2.conf b/supervisor.conf.d/apache2.conf new file mode 100644 index 0000000..3f1b891 --- /dev/null +++ b/supervisor.conf.d/apache2.conf @@ -0,0 +1,8 @@ +[program:apache2] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=apache2-foreground + + diff --git a/supervisor.conf.d/cron.conf b/supervisor.conf.d/cron.conf new file mode 100644 index 0000000..529bc3c --- /dev/null +++ b/supervisor.conf.d/cron.conf @@ -0,0 +1,8 @@ + + +[program:cron] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=/cron.sh diff --git a/supervisord.conf b/supervisord.conf index 836a08a..9849c5b 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -7,16 +7,3 @@ logfile_maxbytes=50MB ; maximum size of logfile before logfile_backups=10 ; number of backed up logfiles loglevel=error -[program:apache2] -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 -command=apache2-foreground - -[program:cron] -stdout_logfile=/dev/stdout -stdout_logfile_maxbytes=0 -stderr_logfile=/dev/stderr -stderr_logfile_maxbytes=0 -command=/cron.sh