1 25 package org.snipsnap.server; 26 27 import org.mortbay.util.Code; 28 import org.mortbay.util.Log; 29 30 35 public class Shutdown { 36 39 public static void shutdown() { 40 if (AppServer.jettyServer.isStarted()) { 41 Log.event("Application: stopping server"); 42 System.out.println("INFO: Stopping server ..."); 43 try { 44 AppServer.jettyServer.stop(); 45 } catch (Exception e) { 46 Code.ignore(e); 47 } 48 System.out.println("INFO: SnipSnap shutdown procedure finished."); 49 Log.event("Application: stopped server"); 50 } 51 } 52 } 53 | Popular Tags |