code: public static void main(String[] args) {
          try {
              instance().initStandAlone(args);
              instance().start();
              instance().waitForShutdown();
          } catch (Throwable e) {
              instance().m_logger.error("Abnormal shutdown", e);
              System.exit(1); // invokes shutdown hooks
          }
      }
docs: Start the Doradus Server in stand-alone mode, overriding doradus.yaml file options
  with the given options. All required services plus default_services and
  storage_services configured in doradus.yaml are started. The process blocks until a
  shutdown signal is received via Ctrl-C or until {@link #shutdown(String[])} is
  called.
  
  @param args  Optional arguments that override doradus.yaml file options. Arguments
  should be provided in the form "-option value" where "option" is a
  doradus.yaml option name and "value" is the overriding value. For
  example: "-restport 1223" sets the REST API listening port to 1223.