4 /** Valid exit codes to be used with InspIRCd::Exit()
8 EXIT_STATUS_NOERROR = 0,
10 EXIT_STATUS_FAILED_EXEC = 2,
11 EXIT_STATUS_INTERNAL = 3,
12 EXIT_STATUS_CONFIG = 4,
18 EXIT_STATUS_SOCKETENGINE = 10,
19 EXIT_STATUS_ROOT = 11,
20 EXIT_STATUS_DIETAG = 12,
21 EXIT_STATUS_MODULE = 13,
22 EXIT_STATUS_SIGTERM = 15 /* Note: dont move this value. It corresponds with the value of #define SIGTERM. */
25 /** Array that maps exit codes (ExitStatus types) to
26 * * human-readable strings to be shown on shutdown.
28 const char* ExitCodes[] =
31 "DIE command", /* 1 */
32 "execv() failed", /* 2 */
33 "Internal error", /* 3 */
34 "Config file error", /* 4 */
35 "Logfile error", /* 5 */
36 "Fork failed", /* 6 */
37 "Bad commandline parameters", /* 7 */
38 "No ports could be bound", /* 8 */
39 "Can't write PID file", /* 9 */
40 "SocketEngine could not initialize", /* 10 */
41 "Refusing to start up as root", /* 11 */
42 "Found a <die> tag!", /* 12 */
43 "Couldn't load module on startup", /* 13 */
45 "Received SIGTERM", /* 15 */