Listen for SIGTERM as well and gracefully shutdown in that case.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4959 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-03-05 23:28:28 +00:00
parent e8b5d41fb8
commit 8a745b30e0
4 changed files with 19 additions and 1 deletions
@@ -148,7 +148,7 @@ public class PresentsServer
log.info("Starting up server [os=" + si.osToString() + ", jvm=" + si.jvmToString() +
", mem=" + si.memoryToString() + "].");
// register SIGINT (ctrl-c) and a SIGHUP handlers
// register SIGTERM, SIGINT (ctrl-c) and a SIGHUP handlers
boolean registered = false;
try {
registered = new SunSignalHandler().init(this);