diff options
| author | 2023-07-13 13:31:06 +0100 | |
|---|---|---|
| committer | 2023-07-13 14:07:26 +0100 | |
| commit | b4e3e973297db456f0ba8d7fdb8bbfc9c8426ea7 (patch) | |
| tree | 6e642a3690d163861d6d14e86b57ccf300bd3e0c /src/configreader.cpp | |
| parent | Error out if CMake is used on non-Windows. (diff) | |
Simplify the codes that InspIRCd can exit with.
The custom codes that InspIRCd exits with are not very useful and can confuse init systems like systemd which assume that certain
exit codes mean certain things. INSPIRCD_BINARY_EXIT was a workaround
for this in v3 but considering thatsers have to check the logs anyway
so we may as well just use EXIT_SUCCESS and EXIT_FAILURE.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 110dc9172..3a0b70534 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -37,7 +37,6 @@ #include "inspircd.h" #include "configparser.h" -#include "exitcodes.h" ServerConfig::ReadResult::ReadResult(const std::string& c, const std::string& e) : contents(c) @@ -528,7 +527,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) { if (!valid) { - ServerInstance->Exit(EXIT_STATUS_CONFIG); + ServerInstance->Exit(EXIT_FAILURE); } return; |
