mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
34 lines
546 B
Plaintext
34 lines
546 B
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/null
|
|
logfile_maxbytes=0
|
|
user=root
|
|
|
|
|
|
[program:vnstat]
|
|
command=vnstatd -n
|
|
autorestart=true
|
|
|
|
|
|
[program:ytdl]
|
|
directory=/ytdlbot/ytdlbot/
|
|
command=python ytdl_bot.py
|
|
autorestart=true
|
|
priority=900
|
|
stopasgroup=true
|
|
startsecs = 5
|
|
startretries = 5
|
|
|
|
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 |