mirror of https://github.com/kortix-ai/suna.git
95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
[supervisord]
|
|
user=root
|
|
nodaemon=true
|
|
logfile=/dev/stdout
|
|
logfile_maxbytes=0
|
|
loglevel=debug
|
|
|
|
[program:xvfb]
|
|
command=Xvfb :99 -screen 0 %(ENV_RESOLUTION)s -ac +extension GLX +render -noreset
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=100
|
|
startsecs=3
|
|
stopsignal=TERM
|
|
stopwaitsecs=10
|
|
|
|
[program:vnc_setup]
|
|
command=bash -c "mkdir -p ~/.vnc && echo '%(ENV_VNC_PASSWORD)s' | vncpasswd -f > ~/.vnc/passwd && chmod 600 ~/.vnc/passwd && ls -la ~/.vnc/passwd"
|
|
autorestart=false
|
|
startsecs=0
|
|
priority=150
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:x11vnc]
|
|
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"
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=200
|
|
startretries=10
|
|
startsecs=10
|
|
stopsignal=TERM
|
|
stopwaitsecs=10
|
|
depends_on=vnc_setup,xvfb
|
|
|
|
[program:x11vnc_log]
|
|
command=bash -c "mkdir -p /var/log && touch /var/log/x11vnc.log && tail -f /var/log/x11vnc.log"
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=250
|
|
stopsignal=TERM
|
|
stopwaitsecs=5
|
|
depends_on=x11vnc
|
|
|
|
[program:novnc]
|
|
command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc"
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=300
|
|
startretries=5
|
|
startsecs=3
|
|
depends_on=x11vnc
|
|
|
|
[program:http_server]
|
|
command=python /app/server.py
|
|
directory=/app
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=400
|
|
startretries=5
|
|
startsecs=5
|
|
stopsignal=TERM
|
|
stopwaitsecs=10
|
|
|
|
[program:browser_api]
|
|
command=python /app/browser_api.py
|
|
directory=/app
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=400
|
|
startretries=5
|
|
startsecs=5
|
|
stopsignal=TERM
|
|
stopwaitsecs=10
|