Files
lastwar/docker/supervisord.conf

64 lines
1.6 KiB
Plaintext
Executable File

[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
[supervisord]
nodaemon=true
logfile=/var/www/html/logs/supervisor.log
logfile_maxbytes=50MB
pidfile=/var/run/supervisord.pid
childlogdir=/var/www/html/logs
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[program:apache]
process_name=%(program_name)s
command=/usr/sbin/apache2ctl -D FOREGROUND
autostart=true
autorestart=true
stdout_logfile=/var/www/html/logs/apache.log
stdout_logfile_maxbytes=10MB
stderr_logfile=/var/www/html/logs/apache_error.log
redirect_stderr=true
[program:bot_discord]
process_name=%(program_name)s
command=php /var/www/html/discord_bot.php
autostart=true
autorestart=true
numprocs=1
stdout_logfile=/var/www/html/logs/discord_bot.log
stdout_logfile_maxbytes=10MB
stderr_logfile=/var/www/html/logs/discord_bot_error.log
redirect_stderr=true
[program:bot_process_queue]
process_name=%(program_name)s
command=php /var/www/html/process_queue.php
autostart=true
autorestart=true
numprocs=1
stdout_logfile=/var/www/html/logs/process_queue.log
stdout_logfile_maxbytes=10MB
stderr_logfile=/var/www/html/logs/process_queue_error.log
redirect_stderr=true
[program:bot_translation_queue]
process_name=%(program_name)s
command=php /var/www/html/process_translation_queue.php
autostart=true
autorestart=true
numprocs=1
stdout_logfile=/var/www/html/logs/translation_queue.log
stdout_logfile_maxbytes=10MB
stderr_logfile=/var/www/html/logs/translation_queue_error.log
redirect_stderr=true
[group:bot_workers]
programs=bot_discord,bot_process_queue,bot_translation_queue
priority=999