@Override public void controlEvent(int event){
  if ((event == WrapperManager.WRAPPER_CTRL_LOGOFF_EVENT) && WrapperManager.isLaunchedAsService()) {
    if (logger.isInfoEnabled()) {
      logger.info("ServiceWrapper: controlEvent(" + event + ") Ignored");
    }
  }
 else {
    if (logger.isInfoEnabled()) {
      logger.info("ServiceWrapper: controlEvent(" + event + ") Stopping");
    }
    WrapperManager.stop(0);
  }
}

@ Override public void controlEvent ( int event ) { if ( ( event == WrapperManager . WRAPPER_CTRL_LOGOFF_EVENT ) && WrapperManager . isLaunchedAsService ( ) ) { if ( logger . isInfoEnabled ( ) ) { logger . info ( "ServiceWrapper: controlEvent(" + event + ") Ignored" ) ; } } else { if ( logger . isInfoEnabled ( ) ) { logger . info ( "ServiceWrapper: controlEvent(" + event + ") Stopping" ) ; } WrapperManager . stop ( 0 ) ; } }
called whenever the native wrapper code traps a system control signal against the java process . it is up to the callback to take any actions necessary . possible values are : wrappermanager . wrapper_ctrl_c_event , wrapper_ctrl_close_event , wrapper_ctrl_logoff_event , or wrapper_ctrl_shutdown_event
