binary1ne commited on
Commit
ce0524d
·
verified ·
1 Parent(s): b03d8b5

Update supervisord.conf

Browse files
Files changed (1) hide show
  1. supervisord.conf +8 -39
supervisord.conf CHANGED
@@ -8,73 +8,42 @@ loglevel=error
8
  [program:xvfb]
9
  command=Xvfb :99 -screen 0 %(ENV_RESOLUTION)s -ac +extension GLX +render -noreset
10
  autorestart=true
11
- stdout_logfile=/dev/stdout
12
- stdout_logfile_maxbytes=0
13
- stderr_logfile=/dev/stderr
14
- stderr_logfile_maxbytes=0
15
  priority=100
16
- startsecs=3
17
- stopsignal=TERM
18
- stopwaitsecs=10
19
 
20
  [program:vnc_setup]
21
- command=bash -c "mkdir -p ~/.vnc && echo '%(ENV_VNC_PASSWORD)s' | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd && ls -la ~/.vnc/passwd"
22
  autorestart=false
23
- startsecs=0
24
  priority=150
25
- stdout_logfile=/dev/stdout
26
- stdout_logfile_maxbytes=0
27
- stderr_logfile=/dev/stderr
28
- stderr_logfile_maxbytes=0
29
 
30
  [program:x11vnc]
31
- command=bash -c "mkdir -p /var/log && touch /var/log/x11vnc.log && chmod 666 /var/log/x11vnc.log && sleep 5 && DISPLAY=:99 x11vnc -display :99 -forever -shared -rfbauth /root/.vnc/passwd -rfbport 5901 -o /var/log/x11vnc.log"
 
 
32
  autorestart=true
33
- stdout_logfile=/dev/stdout
34
- stdout_logfile_maxbytes=0
35
- stderr_logfile=/dev/stderr
36
- stderr_logfile_maxbytes=0
37
  priority=200
38
  startretries=10
39
  startsecs=10
40
- stopsignal=TERM
41
- stopwaitsecs=10
42
  depends_on=vnc_setup,xvfb
43
 
44
  [program:x11vnc_log]
45
- command=bash -c "mkdir -p /var/log && touch /var/log/x11vnc.log && tail -f /var/log/x11vnc.log"
46
  autorestart=true
47
- stdout_logfile=/dev/stdout
48
- stdout_logfile_maxbytes=0
49
- stderr_logfile=/dev/stderr
50
- stderr_logfile_maxbytes=0
51
  priority=250
52
- stopsignal=TERM
53
- stopwaitsecs=5
54
  depends_on=x11vnc
55
 
56
  [program:novnc]
57
  command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc"
58
  autorestart=true
59
- stdout_logfile=/dev/stdout
60
- stdout_logfile_maxbytes=0
61
- stderr_logfile=/dev/stderr
62
- stderr_logfile_maxbytes=0
63
  priority=300
64
  startretries=5
65
  startsecs=3
66
  depends_on=x11vnc
67
 
68
  [program:webui]
69
- command=python webui.py --ip 0.0.0.0 --port 7788
70
- directory=/app
 
71
  autorestart=true
72
- stdout_logfile=/dev/stdout
73
- stdout_logfile_maxbytes=0
74
- stderr_logfile=/dev/stderr
75
- stderr_logfile_maxbytes=0
76
  priority=400
77
  startretries=3
78
  startsecs=3
79
- stopsignal=TERM
80
- stopwaitsecs=10
 
8
  [program:xvfb]
9
  command=Xvfb :99 -screen 0 %(ENV_RESOLUTION)s -ac +extension GLX +render -noreset
10
  autorestart=true
 
 
 
 
11
  priority=100
 
 
 
12
 
13
  [program:vnc_setup]
14
+ command=bash -c "mkdir -p ~/.vnc && echo '%(ENV_VNC_PASSWORD)s' | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd"
15
  autorestart=false
 
16
  priority=150
 
 
 
 
17
 
18
  [program:x11vnc]
19
+ ; Use same passwd created by vnc_setup (in /home/user/.vnc/passwd)
20
+ ; ✅ Write logs to ~/.vnc/x11vnc.log instead of /var/log (avoids permission issues)
21
+ command=bash -c "sleep 5 && DISPLAY=:99 x11vnc -display :99 -forever -shared -rfbauth ~/.vnc/passwd -rfbport 5901 -o ~/.vnc/x11vnc.log"
22
  autorestart=true
 
 
 
 
23
  priority=200
24
  startretries=10
25
  startsecs=10
 
 
26
  depends_on=vnc_setup,xvfb
27
 
28
  [program:x11vnc_log]
29
+ command=bash -c "tail -f ~/.vnc/x11vnc.log"
30
  autorestart=true
 
 
 
 
31
  priority=250
 
 
32
  depends_on=x11vnc
33
 
34
  [program:novnc]
35
  command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc"
36
  autorestart=true
 
 
 
 
37
  priority=300
38
  startretries=5
39
  startsecs=3
40
  depends_on=x11vnc
41
 
42
  [program:webui]
43
+ command=python webui.py --ip 0.0.0.0 --port 7860
44
+ ; ✅ Fix wrong directory (/app -> /web-ui)
45
+ directory=/web-ui
46
  autorestart=true
 
 
 
 
47
  priority=400
48
  startretries=3
49
  startsecs=3