Spaces:
Paused
Paused
Rename startup.sh to supervisord.conf
Browse files- startup.sh +0 -7
- supervisord.conf +31 -0
startup.sh
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
export DISPLAY=:1
|
| 3 |
-
Xvfb :1 -screen 0 1600x900x16 &
|
| 4 |
-
sleep 5
|
| 5 |
-
openbox-session&
|
| 6 |
-
x11vnc -display :1 -nopw -listen localhost -xkb -ncache 10 -ncache_cr -forever &
|
| 7 |
-
cd /root/noVNC && ln -s vnc_auto.html index.html && ./utils/launch.sh --vnc localhost:5900
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
supervisord.conf
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
logfile=/dev/null
|
| 4 |
+
logfile_maxbytes=0
|
| 5 |
+
pidfile=/var/run/supervisord.pid
|
| 6 |
+
|
| 7 |
+
[program:xvfb]
|
| 8 |
+
command=/usr/bin/Xvfb :0 -screen 0 %(ENV_RESOLUTION)s
|
| 9 |
+
autorestart=true
|
| 10 |
+
priority=100
|
| 11 |
+
|
| 12 |
+
[program:fluxbox]
|
| 13 |
+
command=/usr/bin/fluxbox
|
| 14 |
+
autorestart=true
|
| 15 |
+
priority=150
|
| 16 |
+
|
| 17 |
+
[program:x11vnc]
|
| 18 |
+
command=/usr/bin/x11vnc -display :0 -forever -shared -noxdamage
|
| 19 |
+
autorestart=true
|
| 20 |
+
priority=175
|
| 21 |
+
|
| 22 |
+
[program:chromium]
|
| 23 |
+
command=/usr/bin/chromium-browser --no-sandbox --disable-gpu --disable-dev-shm-usage --start-maximized
|
| 24 |
+
environment=DISPLAY=:0
|
| 25 |
+
autorestart=true
|
| 26 |
+
priority=200
|
| 27 |
+
|
| 28 |
+
[program:novnc]
|
| 29 |
+
command=/usr/share/novnc/utils/launch.sh --vnc localhost:5900 --listen %(ENV_PORT)s
|
| 30 |
+
autorestart=true
|
| 31 |
+
priority=300
|