ytdlbot/conf/supervisor_worker.conf
2022-01-25 09:32:42 +08:00

28 lines
460 B
Plaintext

[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
user=root
[program:worker]
directory=/ytdlbot/ytdlbot/
command=python tasks.py
autorestart=true
priority=900
stopasgroup=true
redirect_stderr=true
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 2
stdout_logfile = /var/log/ytdl.log
[program:log]
command=tail -f /var/log/ytdl.log
autorestart=true
priority=999
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0