aot-wine-x11-novnc-docker/supervisord.conf
Skylar Sadlier ea006568e2 - cpulimit now reapplies when aot process restarts
- reduce resolution to 640x480 (to reduce CPU usage)
- renamed restart-aot-crash.sh to aot-monitor.sh
- added new env variable RESOLUTION for setting x11 and AgeOfTime game resolution on container startup (so it's easy to change)
- updated readme
2024-03-10 21:46:24 -06:00

104 lines
2.6 KiB
Plaintext

[supervisord]
nodaemon=true
[program:X11]
command=/usr/bin/Xvfb :0 -screen 0 %(ENV_RESOLUTION)s
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
priority=1
[program:x11vnc]
command=/usr/bin/x11vnc -noxrecord
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
priority=1
[program:novnc]
command=/root/novnc/utils/launch.sh --vnc localhost:5900 --listen 8080
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
priority=1
[program:pulseaudio]
command=/usr/bin/pulseaudio --disallow-module-loading -vvvv --disallow-exit --exit-idle-time=-1
stdout_logfile=/root/pulseaudio.log
stdout_logfile_maxbytes=1MB
stderr_logfile_maxbytes=1MB
redirect_stderr=true
priority=1
; [program:audiostream]
; command=tcpserver localhost 5901 gst-launch-1.0 -q pulsesrc server=/tmp/pulseaudio.socket ! audio/x-raw, channels=2, rate=24000 ! cutter ! opusenc ! webmmux ! fdsink fd=1
; stdout_logfile=/root/audiostream.log
; stdout_logfile_maxbytes=1MB
; stderr_logfile_maxbytes=1MB
; redirect_stderr=true
; priority=1
; [program:websockify_audio]
; command=websockify 8081 localhost:5901
; stdout_logfile=/root/websockify-audio.log
; stdout_logfile_maxbytes=1MB
; stderr_logfile_maxbytes=1MB
; redirect_stderr=true
; priority=1
; [program:explorer]
; command=/opt/wine-stable/bin/wine Explorer.exe
; autorestart=true
; stdout_logfile=/dev/fd/1
; stdout_logfile_maxbytes=0
; redirect_stderr=true
; priority=1
[program:fluxbox]
command=/usr/bin/fluxbox
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
priority=1
[program:restart-aot-if-crashed]
command=/bin/bash -c "/root/aot-monitor.sh"
umask=0022
stderr_logfile = /var/log/supervisor/restart-aot-if-crashed-stderr.log
stdout_logfile = /var/log/supervisor/restart-aot-if-crashed-stdout.log
stdout_logfile_maxbytes=1MB
stderr_logfile_maxbytes=1MB
autostart=true
autorestart=true
user=root
redirect_stderr=true
environment=
AOT_CPU_LIMIT="%(ENV_AOT_CPU_LIMIT)s",
AOTDIR="%(ENV_AOTDIR)s"
[program:ageoftime]
command=/root/start-aot.sh
umask=0022
stderr_logfile = /var/log/supervisor/ageoftime-stderr.log
stdout_logfile = /var/log/supervisor/ageoftime-stdout.log
stdout_logfile_maxbytes=1MB
stderr_logfile_maxbytes=1MB
autostart=true
autorestart=true
user=root
redirect_stderr=true
priority=200
environment=
LANGUAGE="en_US.UTF-8",
WINEARCH="win64",
HOME="/root",
LANG="en_US.UTF-8",
WINEPREFIX="/root/prefix32",
TERM="xterm",
DISPLAY=":0",
LC_ALL="C.UTF-8",
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"