code: public void stop()
      {
          // On linux, this doesn't entirely shut down Cassandra, just the RPC server.
          // jsvc takes care of taking the rest down
          logger.info("Cassandra shutting down...");
          thriftServer.stop();
          nativeServer.stop();
  
          // On windows, we need to stop the entire system as prunsrv doesn't have the jsvc hooks
          // We rely on the shutdown hook to drain the node
          if (FBUtilities.isWindows())
              System.exit(0);
  
          if (jmxServer != null)
          {
              try
              {
                  jmxServer.stop();
              }
              catch (IOException e)
              {
                  logger.error("Error shutting down local JMX server: ", e);
              }
          }
      }
docs: Stop the daemon, ideally in an idempotent manner.
  
  Hook for JSVC / Procrun