45 lines
858 B
Plaintext
45 lines
858 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/fd/1
|
|
logfile_maxbytes=0
|
|
pidfile=/tmp/supervisord.pid
|
|
childlogdir=/tmp
|
|
|
|
; one-shot init before services
|
|
[program:init]
|
|
command=/usr/local/bin/entrypoint.sh
|
|
startsecs=0
|
|
startretries=1
|
|
autorestart=false
|
|
priority=5
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/fd/2
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:php-fpm]
|
|
command=/usr/local/sbin/php-fpm -F
|
|
priority=10
|
|
autostart=true
|
|
autorestart=true
|
|
stopsignal=QUIT
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/fd/2
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:nginx]
|
|
command=/usr/sbin/nginx -g "daemon off;"
|
|
priority=20
|
|
autostart=true
|
|
autorestart=true
|
|
stopsignal=QUIT
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/fd/2
|
|
stderr_logfile_maxbytes=0
|