-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsupervisord.conf
46 lines (39 loc) · 1.14 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
[unix_http_server]
file=/var/run/supervisord.sock
username = dummy1234
password = dummy1234
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisord]
nodaemon=true
loglevel=warn
logfile=/etc/d2ray/logs/supervisord/supervisord.log
logfile_maxbytes=0
[supervisorctl]
serverurl=unix:///var/run/supervisord.sock
username = dummy1234
password = dummy1234
# [program:nginx]
# command=nginx -c /opt/nginx/nginx.conf
# autostart=true
# autorestart=false
# stdout_logfile=/dev/fd/1
# stdout_logfile_maxbytes=0
# redirect_stderr=true
# [program:cron]
# command=crond -f -L /etc/d2ray/logs/cron/crond.log -c /opt/crontabs
# autostart=true
# autorestart=false
# stdout_logfile=/etc/d2ray/logs/cron/crond.log
# stdout_logfile_maxbytes=0
# redirect_stderr=true
[program:xray]
command=/opt/xray/xray -c /opt/xray/d2ray.json
autostart=true
autorestart=false
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
[eventlistener:exit]
command=bash -c "printf 'READY\n' && while read line; do kill -SIGQUIT $PPID; done < /dev/stdin"
events=PROCESS_STATE_FATAL,PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED