Create supervisord.conf
Browse files- supervisord.conf +80 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
user=root
|
| 3 |
+
nodaemon=true
|
| 4 |
+
logfile=/dev/stdout
|
| 5 |
+
logfile_maxbytes=0
|
| 6 |
+
loglevel=error
|
| 7 |
+
|
| 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
|