[Swift-commit] cog r3766
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Wed Aug 21 13:15:05 CDT 2013
------------------------------------------------------------------------
r3766 | hategan | 2013-08-21 13:12:53 -0500 (Wed, 21 Aug 2013) | 1 line
added a few log messages to better determine why a service might get shut down
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/CoasterPersistentService.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/CoasterPersistentService.java (revision 3765)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/CoasterPersistentService.java (working copy)
@@ -227,6 +227,7 @@
private static void addShutdownHook(final CoasterPersistentService s) {
Runtime.getRuntime().addShutdownHook(new Thread() {
public void run() {
+ logger.info("Running coaster shutdown hook...");
if (stats) {
if (statusDisplay != null) {
statusDisplay.close();
Index: modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/ServiceShutdownHandler.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/ServiceShutdownHandler.java (revision 3765)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/coaster/service/ServiceShutdownHandler.java (working copy)
@@ -25,6 +25,7 @@
.getChannelContext().getService();
sendReply("OK");
Thread.sleep(100);
+ logger.info("Shutdown command received");
cs.shutdown();
}
catch (Exception e) {
More information about the Swift-commit
mailing list