[supervisord]
nodaemon=true
logfile=/var/log/supervisord.log
pidfile=/var/run/supervisord.pid

[program:xvfb]
command=/usr/bin/Xvfb :10 -screen 0 1920x1080x24
autorestart=true
priority=5

[program:openbox]
command=/bin/bash -c "sleep 2 && DISPLAY=:10 su -c 'source ~/.bashrc && openbox-session' openbox"
autorestart=true
priority=10

[program:x11vnc]
command=/bin/bash -c "sleep 3 && x11vnc -display :10 -rfbauth /home/openbox/.vnc/passwd -rfbport 5900 -forever -shared -noxdamage"
autorestart=true
priority=20

[program:xrdp]
command=/bin/bash -c "sleep 4 && /usr/sbin/xrdp --nodaemon"
autorestart=true
priority=30
