diff --git a/dMasterServer/MasterServer.cpp b/dMasterServer/MasterServer.cpp index b6ccac63..fe64f5a9 100644 --- a/dMasterServer/MasterServer.cpp +++ b/dMasterServer/MasterServer.cpp @@ -63,6 +63,7 @@ int main(int argc, char** argv) { //Triggers the shutdown sequence at application exit std::atexit(ShutdownSequence); signal(SIGINT, [](int) { ShutdownSequence(); }); + signal(SIGTERM, [](int) { ShutdownSequence(); }); //Create all the objects we need to run our service: Game::logger = SetupLogger(); diff --git a/dWorldServer/WorldServer.cpp b/dWorldServer/WorldServer.cpp index 53abfd7a..48d3e33a 100644 --- a/dWorldServer/WorldServer.cpp +++ b/dWorldServer/WorldServer.cpp @@ -100,10 +100,8 @@ int main(int argc, char** argv) { // Triggers the shutdown sequence at application exit std::atexit(WorldShutdownSequence); - signal(SIGINT, [](int) - { - WorldShutdownSequence(); - }); + signal(SIGINT, [](int){ WorldShutdownSequence(); }); + signal(SIGTERM, [](int){ WorldShutdownSequence(); }); int zoneID = 1000; int cloneID = 0;