public static void main(final String... args) throws Exception {
      new LocalProcessLauncher(new File(FILE_NAME), false);
      StopWatch stopWatch = new StopWatch(true);
      while (stopWatch.elapsedTimeMillis() < PROCESS_TIMEOUT_MILLIS) {
        Thread.sleep(1000);
      }
    }
Class with main that uses LocalProcessLauncher to create a PidFile and then sleeps.
geode-core/src/integrationTest/java/org/apache/geode/internal/process/NativeProcessUtilsIntegrationTest.java