List of exit codes: Difference between revisions
Appearance
Created page with "{| class="wikitable" |- ! Code ! Name ! Context |- |0 |ShutdownCommand |Server is shutting down, because someone called {{cmd|Shutdown}}. |- |1 |RestartCommand |Server is rest..." |
Note about the restart exit codes |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
When ServerCLI or ServerGUI exit, they specify context in the process exit code/exit status. | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 19: | Line 21: | ||
|3 | |3 | ||
|FailedToStart | |FailedToStart | ||
|Server initialized properly, but failed to [[API: Startup|start | |Server initialized properly, but failed to [[API: Startup|start]] (StartServer failed). | ||
|- | |- | ||
|4 | |4 | ||
| Line 41: | Line 43: | ||
|Updater should be ran, then server should NOT be restarted. | |Updater should be ran, then server should NOT be restarted. | ||
|} | |} | ||
===Restarting=== | |||
:The restart exit codes are honoured even if the <CODE>--norestart</CODE> [[List_of_command-line_options|option]] is specified. | |||
Latest revision as of 17:29, 13 November 2012
When ServerCLI or ServerGUI exit, they specify context in the process exit code/exit status.
| Code | Name | Context |
|---|---|---|
| 0 | ShutdownCommand | Server is shutting down, because someone called /Shutdown.
|
| 1 | RestartCommand | Server is restarting, because someone called /Restart.
|
| 2 | FailedToInitialize | fCraft failed to initialize (InitLibrary or InitServer failed). |
| 3 | FailedToStart | Server initialized properly, but failed to start (StartServer failed). |
| 4 | Crashed | Server has experienced a non-recoverable crash. |
| 5 | ProcessClosing | Server process is being closed (ServerGUI was closed, or Ctrl+C/Ctrl+Break was pressed in ServerCLI). |
| 6 | RestartTimer | RestartInterval timer triggered. |
| 7 | RestartForUpdate | Updater should be ran, then server should be restarted. |
| 8 | ShutdownForUpdate | Updater should be ran, then server should NOT be restarted. |
Restarting
- The restart exit codes are honoured even if the
--norestartoption is specified.