Commit inicial con archivos existentes
This commit is contained in:
9
docker/supervisor/discordbot.conf
Executable file
9
docker/supervisor/discordbot.conf
Executable file
@@ -0,0 +1,9 @@
|
||||
[program:discordbot]
|
||||
command=/usr/bin/php /var/www/html/bot/discord_bot.php
|
||||
directory=/var/www/html/bot/
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/www/html/bot/logs/discordbot.err.log
|
||||
stdout_logfile=/var/www/html/bot/logs/discordbot.out.log
|
||||
user=root
|
||||
redirect_stderr=false
|
||||
17
docker/supervisor/supervisord.conf
Executable file
17
docker/supervisor/supervisord.conf
Executable file
@@ -0,0 +1,17 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/var/www/html/bot/logs/supervisor.log
|
||||
loglevel=info
|
||||
pidfile=/var/run/supervisor/supervisord.pid
|
||||
childlogdir=/var/www/html/bot/logs
|
||||
user=root
|
||||
|
||||
[program:apache2]
|
||||
command=/bin/bash -c "source /etc/apache2/envvars && exec apache2 -D FOREGROUND"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/www/html/bot/logs/apache2.out.log
|
||||
stderr_logfile=/var/www/html/bot/logs/apache2.err.log
|
||||
|
||||
[include]
|
||||
files=/etc/supervisor/conf.d/*.conf
|
||||
19
docker/supervisor/translation-worker.conf
Executable file
19
docker/supervisor/translation-worker.conf
Executable file
@@ -0,0 +1,19 @@
|
||||
[program:translation-worker]
|
||||
command=/usr/bin/php /var/www/html/bot/process_translation_queue.php
|
||||
directory=/var/www/html/bot/
|
||||
user=root
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/www/html/bot/logs/translation-worker.out.log
|
||||
stderr_logfile=/var/www/html/bot/logs/translation-worker.err.log
|
||||
redirect_stderr=true
|
||||
|
||||
[program:queue-processor]
|
||||
command=/bin/bash -c "while true; do sleep 60; /usr/bin/php /var/www/html/bot/process_queue.php; done"
|
||||
directory=/var/www/html/bot/
|
||||
user=root
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/www/html/bot/logs/queue-processor.out.log
|
||||
stderr_logfile=/var/www/html/bot/logs/queue-processor.err.log
|
||||
redirect_stderr=true
|
||||
Reference in New Issue
Block a user