forked from realies/soulseek-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinit.sh
executable file
·32 lines (27 loc) · 800 Bytes
/
init.sh
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
#/bin/sh
resolution=${resolution:-1280x720}x16
[ ! -f /etc/supervisord.conf ] && echo "[supervisord]
nodaemon=true
[program:xvfb]
command=/usr/bin/Xvfb :1 -screen 0 $resolution
autorestart=true
priority=100
[program:x11vnc]
command=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :1 -nopw -wait 5 -shared -permitfiletransfer -tightfilexfer -rfbport 5900
autorestart=true
priority=200
[program:openbox]
environment=HOME="/root",DISPLAY=":1",USER="root"
command=/usr/bin/openbox
autorestart=true
priority=300
[program:novnc]
command=/usr/share/novnc/utils/launch.sh
autorestart=true
priority=400
[program:soulseek]
environment=HOME="/root",DISPLAY=":1",USER="root"
command=nicotine
autorestart=true
priority=500" > /etc/supervisord.conf
/usr/bin/supervisord -c /etc/supervisord.conf