2020-11-26 22:13:55 +08:00
|
|
|
[supervisord]
|
|
|
|
nodaemon=true
|
2023-11-20 22:01:26 +08:00
|
|
|
user=root
|
|
|
|
logfile=/dev/null
|
|
|
|
logfile_maxbytes=0
|
2020-11-26 22:13:55 +08:00
|
|
|
|
|
|
|
[program:nginx]
|
|
|
|
command=nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|
|
|
|
process_name=%(program_name)s_%(process_num)02d
|
2023-11-20 22:01:26 +08:00
|
|
|
user=root
|
2020-11-26 22:13:55 +08:00
|
|
|
numprocs=1
|
|
|
|
autostart=true
|
|
|
|
autorestart=false
|
|
|
|
startsecs=0
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
|
|
|
|
[program:php-fpm]
|
|
|
|
command=php-fpm -F
|
|
|
|
process_name=%(program_name)s_%(process_num)02d
|
2023-11-20 22:01:26 +08:00
|
|
|
user=root
|
2020-11-26 22:13:55 +08:00
|
|
|
numprocs=1
|
|
|
|
autostart=true
|
|
|
|
autorestart=false
|
|
|
|
startsecs=0
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
|
|
|
|
[eventlistener:subprocess-stopped]
|
|
|
|
command=php /listener.php
|
|
|
|
process_name=%(program_name)s_%(process_num)02d
|
2023-11-20 22:01:26 +08:00
|
|
|
user=root
|
2020-11-26 22:13:55 +08:00
|
|
|
numprocs=1
|
|
|
|
events=PROCESS_STATE_EXITED,PROCESS_STATE_STOPPED,PROCESS_STATE_FATAL
|
|
|
|
autostart=true
|
2023-11-20 22:01:26 +08:00
|
|
|
autorestart=unexpected
|