public static boolean isProcessRunning ( String baseDir ) { File pidFile = new File ( baseDir , "pid" ) ; boolean exists = pidFile . isFile ( ) ; return exists ; }
Check whether the PID file created by the ES process exists or not .