/** * Start Media Driver as a stand-alone process. * * @param args command line arguments * @throws Exception if an error occurs */ public static void main(final String[] args) throws Exception { if (1 == args.length) { loadPropertiesFile(args[0]); } try (final MediaDriver ignored = MediaDriver.launch()) { new SigIntBarrier().await(); System.out.println("Shutdown Driver..."); } }