public void stop(){
  logger.info("Cassandra shutting down...");
  if (thriftServer != null)   thriftServer.stop();
  if (nativeServer != null)   nativeServer.stop();
  if (FBUtilities.isWindows())   System.exit(0);
  if (jmxServer != null) {
    try {
      jmxServer.stop();
    }
 catch (    IOException e) {
      logger.error("Error shutting down local JMX server: ",e);
    }
  }
}

public void stop ( ) { logger . info ( "Cassandra shutting down..." ) ; if ( thriftServer != null ) thriftServer . stop ( ) ; if ( nativeServer != null ) nativeServer . stop ( ) ; if ( FBUtilities . isWindows ( ) ) System . exit ( 0 ) ; if ( jmxServer != null ) { try { jmxServer . stop ( ) ; } catch ( IOException e ) { logger . error ( "Error shutting down local JMX server: " , e ) ; } } }
stop the daemon , ideally in an idempotent manner . hook for jsvc / procrun
