mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
Add handling of SIGTERM
This commit is contained in:
parent
77826c8691
commit
03e2a855b1
@ -62,6 +62,7 @@ int main(int argc, char** argv) {
|
|||||||
//Triggers the shutdown sequence at application exit
|
//Triggers the shutdown sequence at application exit
|
||||||
std::atexit(ShutdownSequence);
|
std::atexit(ShutdownSequence);
|
||||||
signal(SIGINT, [](int) { ShutdownSequence(); });
|
signal(SIGINT, [](int) { ShutdownSequence(); });
|
||||||
|
signal(SIGTERM, [](int) { ShutdownSequence(); });
|
||||||
|
|
||||||
//Create all the objects we need to run our service:
|
//Create all the objects we need to run our service:
|
||||||
Game::logger = SetupLogger();
|
Game::logger = SetupLogger();
|
||||||
|
Loading…
Reference in New Issue
Block a user