refactor: split supervisord configuration
This commit is contained in:
parent
9109c923dd
commit
457572b365
4 changed files with 17 additions and 13 deletions
|
@ -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
|
||||
|
|
8
supervisor.conf.d/apache2.conf
Normal file
8
supervisor.conf.d/apache2.conf
Normal file
|
@ -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
|
||||
|
||||
|
8
supervisor.conf.d/cron.conf
Normal file
8
supervisor.conf.d/cron.conf
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue