telegram_bots/supervisor.conf
2019-01-26 12:36:44 +03:00

35 lines
915 B
Plaintext

[group:bots]
programs = bots_web,bots_celeryd,bots_worker
[program:bots_web]
user = http
directory = /srv/apps/bots
command = /srv/apps/bots/venv/bin/uwsgi --yaml /srv/apps/bots/uwsgi.yml
autostart = true
autorestart = true
stderr_logfile = /srv/apps/bots/logs/uwsgi.log
stdout_logfile = /srv/apps/bots/logs/uwsgi.log
stopsignal = INT
[program:bots_celeryd]
user = http
directory = /srv/apps/bots
command=/srv/apps/bots/venv/bin/celery worker --app=config -l info
stdout_logfile=/srv/apps/bots/logs/celeryd.log
stderr_logfile=/srv/apps/bots/logs/celeryd.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
[program:bots_celerybeat]
user = http
directory = /srv/apps/bots
command=/srv/apps/bots/venv/bin/celery beat --app=config -l info
stdout_logfile=/srv/apps/bots/logs/celerybeat.log
stderr_logfile=/srv/apps/bots/logs/celerybeat.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600