Abandon de supervisor au profit de runit

This commit is contained in:
root 2020-08-06 10:06:41 +02:00
parent 815cc5ed55
commit 65ed791507
5 changed files with 0 additions and 40 deletions

View File

@ -35,7 +35,6 @@ docker-php-ext-configure opcache && docker-php-ext-install opcache
COPY CAS-1.3.8.tgz /root/
RUN pear install /root/CAS-1.3.8.tgz
#COPY supervisor/ /etc/supervisor/
COPY service/ /etc/service/
COPY glpi_init.sh /root/glpi_init.sh
COPY glpi.cron /etc/cron.d/glpi
@ -48,5 +47,4 @@ rm -f /var/www/html/* /root/CAS-1.3.8.tgz && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisor/supervisord.conf"]
ENTRYPOINT ["/usr/bin/runsvdir", "-P", "/etc/service"]

View File

@ -1,7 +0,0 @@
[program:apache2]
command = apache2-foreground
autostart = true
autorestart = true
redirect_stderr = true
stdout_logfile = /dev/stdout
stdout_logfile_maxbytes = 0

View File

@ -1,7 +0,0 @@
[program:cron]
command = cron -f
autostart = true
autorestart = true
redirect_stderr = true
stdout_logfile = /dev/stdout
stdout_logfile_maxbytes = 0

View File

@ -1,8 +0,0 @@
[program:glpi_init]
command = /root/glpi_init.sh
startsecs = 0
autorestart = false
startretries = 1
redirect_stderr = true
stdout_logfile = /dev/stdout
stdout_logfile_maxbytes = 0

View File

@ -1,16 +0,0 @@
; supervisor config file
[supervisord]
logfile = /var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile = /var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir = /var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
user = root
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf