-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsupervisord.conf
87 lines (80 loc) · 1.73 KB
/
supervisord.conf
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[supervisord]
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=25MB
pidfile=/var/run/supervisord.pid
nodaemon=true
user=root
[program:daemon]
command=bash -c "/daemon.sh"
user=root
stdout_logfile=/root/backend.log
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
autostart=true
autorestart=true
stopasgroup=true
stopwaitsecs=120
startsecs=5
startretries=3
[program:db_corruption]
command=bash -c "sleep 300 && /corruption.sh"
user=root
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
autostart=true
autorestart=false
[program:backup_share]
command=bash -c "/utils.sh backup_share"
user=root
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
autostart=false
autorestart=false
stopasgroup=true
startsecs=5
[program:consensus]
command=bash -c "/consensus.sh"
user=root
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
autostart=true
autorestart=true
startsecs=70
startretries=3
[program:build]
command=bash -c "/build.sh"
user=root
autostart=true
autorestart=false
[program:blockbook]
command=bash -c "/blockbook.sh"
user=root
stopasgroup=true
stopwaitsecs=120
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
stderr_logfile=/root/blockbook.log
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
autostart=true
autorestart=true
logfile_maxbytes=20MB
startsecs=5
[program:crond]
command=bash -c "printenv > /etc/environment && /usr/sbin/cron -f"
user=root
stderr_logfile_maxbytes=30MB
stderr_logfile_backups=0
stdout_logfile_maxbytes=30MB
stdout_logfile_backups=0
autostart=true
autorestart=true
startsecs=10