private void exitProcess(boolean ok,String message){
  logger.info(message);
  try {
    File replicatorHome=ReplicatorRuntimeConf.locateReplicatorHomeDir();
    File varDir=new File(replicatorHome,"var");
    File pidFile=new File(varDir,"trep.pid");
    if (pidFile.exists()) {
      logger.info("Removing PID file");
      pidFile.delete();
    }
  }
 catch (  Throwable t) {
    logger.warn("Unable to complete logic to remove PID file",t);
  }
  logger.info("Exiting process");
  if (ok)   System.exit(0);
 else   System.exit(1);
}

private void exitProcess ( boolean ok , String message ) { logger . info ( message ) ; try { File replicatorHome = ReplicatorRuntimeConf . locateReplicatorHomeDir ( ) ; File varDir = new File ( replicatorHome , "var" ) ; File pidFile = new File ( varDir , "trep.pid" ) ; if ( pidFile . exists ( ) ) { logger . info ( "Removing PID file" ) ; pidFile . delete ( ) ; } } catch ( Throwable t ) { logger . warn ( "Unable to complete logic to remove PID file" , t ) ; } logger . info ( "Exiting process" ) ; if ( ok ) System . exit ( 0 ) ; else System . exit ( 1 ) ; }
exit the process with as much clean - up as we can manage .
