-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.conf
53 lines (47 loc) · 1.51 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
[supervisord]
nodaemon=true
[program:watch]
priority=1
startretries=10
autorestart=true
directory=/app
command=java -jar mod.jar monitor --port 8080
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:public]
priority=2
startretries=10
autorestart=true
directory=/app
command=/app/run.sh
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Prometheus and Grafana
# Comment out or remove the following `program` blocks to disable Prometheus and Grafana
[program:prometheus]
priority=3
startretries=10
autorestart=true
directory=/
command=/bin/bash -c "exec bin/prometheus --config.file=/etc/prometheus/prometheus.yml"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:grafana]
priority=4
startretries=10
autorestart=true
directory=/usr/share/grafana
command=/bin/bash -c "exec bin/grafana server --homepath=/usr/share/grafana --config=/etc/grafana/grafana.ini --packaging=docker cfg:default.log.mode=console cfg:default.paths.data=/var/lib/grafana cfg:default.paths.logs=/var/log/grafana cfg:default.paths.plugins=/var/lib/grafana/plugins cfg:default.paths.provisioning=/etc/grafana/provisioning"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[eventlistener:quit_on_failure]
events=PROCESS_STATE_FATAL
command=sh -c 'while true; do echo "READY"; read line; kill -15 1; echo "RESULT 2"; echo "OK"; done'