File size: 548 Bytes
94ecfcc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[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 = 30
startretries = 2

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