summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/account-server/main-account.cpp1
-rw-r--r--src/game-server/main-game.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index 9d2e9710..06c11c95 100644
--- a/src/account-server/main-account.cpp
+++ b/src/account-server/main-account.cpp
@@ -94,6 +94,7 @@ static void initialize()
signal(SIGQUIT, closeGracefully);
#endif
signal(SIGINT, closeGracefully);
+ signal(SIGTERM, closeGracefully);
// Set enet to quit on exit.
atexit(enet_deinitialize);
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp
index 2a9cee57..076fd05e 100644
--- a/src/game-server/main-game.cpp
+++ b/src/game-server/main-game.cpp
@@ -101,6 +101,7 @@ void initialize()
signal(SIGQUIT, closeGracefully);
#endif
signal(SIGINT, closeGracefully);
+ signal(SIGTERM, closeGracefully);
/*
* If the path values aren't defined, we set the default