YggUtilsYggUtils

Exit Codes

Reference for all exit codes produced by YggUtils and the Minecraft server process it manages.

YggUtils uses exit codes to communicate the reason it stopped. This is useful for hosting panels, process monitors, or startup scripts that observe the wrapper process.

YggUtils Exit Codes

These codes are produced by the YggUtils wrapper itself.

CodeReason
0Config file was missing — generated successfully, fill it in and re-run
0Config values are empty — fill in authserver and serverfile
0Server shut down cleanly (server process exited with code 0)
1serverfile path does not exist on disk
1authlib-injector download failed
1authlib-injector file missing after a download was attempted

Info

A 0 exit from YggUtils always means either a successful clean stop, or a setup step that requires your attention (config missing or incomplete). It is never an error state.

Server Exit Codes

These codes are produced by the Minecraft server process and observed by YggUtils to decide whether to restart.

CodeMeaningYggUtils Action
0Clean shutdown via /stop or equivalentWrapper exits with code 0
Non-zeroCrash, OOM kill, or unexpected terminationRestart after 3 seconds

Warning

YggUtils does not remap or translate server exit codes. The restart/stop decision is based purely on whether the code equals 0 or not.

On this page