Remove xvfb dependency, use -nographics and log to stdout

This commit is contained in:
2026-04-21 11:13:00 -05:00
parent d22bf1be05
commit fe02df5038
+1 -1
View File
@@ -11,7 +11,7 @@
"ghcr.io/pelican-eggs/steamcmd:debian": "ghcr.io/pelican-eggs/steamcmd:debian"
},
"file_denylist": [],
"startup": "rm -f ./CoreKeeperServerLog.txt; touch ./CoreKeeperServerLog.txt; xvfb-run -s \"-screen 0 {{DISPLAY_WIDTH}}x{{DISPLAY_HEIGHT}}x{{DISPLAY_DEPTH}} -ac -nolisten tcp -nolisten unix\" ./CoreKeeperServer -batchmode -logfile CoreKeeperServerLog.txt -world {{WORLD_INDEX}} -worldname \"{{WORLD_NAME}}\" -worldseed {{WORLD_SEED}} -maxplayers {{MAX_PLAYERS}} -worldmode {{WORLD_MODE}} -port {{SERVER_PORT}} $([[ \"{{GAME_ID}}\" != \"\" ]] && echo -n \" -gameid {{GAME_ID}}\") $([[ \"{{SERVER_PASSWORD}}\" != \"\" ]] && echo -n \" -password {{SERVER_PASSWORD}}\") & CKPID=$!; tail -f CoreKeeperServerLog.txt & LOGPID=$!; trap \"kill ${CKPID}; wait ${CKPID}; kill ${LOGPID}; wait ${LOGPID}\" 15; wait $!",
"startup": "./CoreKeeperServer -batchmode -nographics -logfile /dev/stdout -world {{WORLD_INDEX}} -worldname \"{{WORLD_NAME}}\" -worldseed {{WORLD_SEED}} -maxplayers {{MAX_PLAYERS}} -worldmode {{WORLD_MODE}} -port {{SERVER_PORT}} $([[ \"{{GAME_ID}}\" != \"\" ]] && echo -n \" -gameid {{GAME_ID}}\") $([[ \"{{SERVER_PASSWORD}}\" != \"\" ]] && echo -n \" -password {{SERVER_PASSWORD}}\")",
"config": {
"files": "{}",
"startup": "{\"done\": \"Started session\"}",