From b4e3e973297db456f0ba8d7fdb8bbfc9c8426ea7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 13 Jul 2023 13:31:06 +0100 Subject: 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. --- src/coremods/core_oper/cmd_die.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/coremods') diff --git a/src/coremods/core_oper/cmd_die.cpp b/src/coremods/core_oper/cmd_die.cpp index 87cf382e7..74b1b60a4 100644 --- a/src/coremods/core_oper/cmd_die.cpp +++ b/src/coremods/core_oper/cmd_die.cpp @@ -27,8 +27,6 @@ #include "inspircd.h" #include "clientprotocolmsg.h" -#include "exitcodes.h" - #include "core_oper.h" @@ -65,7 +63,7 @@ CmdResult CommandDie::Handle(User* user, const Params& parameters) const std::string diebuf = "*** DIE command from " + user->GetMask() + ". Terminating."; ServerInstance->Logs.Error(MODNAME, diebuf); DieRestart::SendError(diebuf); - ServerInstance->Exit(EXIT_STATUS_DIE); + ServerInstance->Exit(EXIT_FAILURE); } else { -- cgit v1.3.1-10-gc9f91