Skip to content
Snippets Groups Projects
Commit b3c9e084 authored by ribeaudc's avatar ribeaudc
Browse files

fix: - Because we exit the application, remove the shutdown triggering file.

SVN: 7001
parent 86f8f884
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,8 @@ public final class DataMover
private static final String[] PROCESS_MARKER_FILENAMES =
{ INCOMING_PROCESS_MARKER_FILENAME, OUTGOING_PROCESS_MARKER_FILENAME,
LOCAL_PROCESS_MARKER_FILENAME, RECOVERY_PROCESS_MARKER_FILENAME };
LOCAL_PROCESS_MARKER_FILENAME, RECOVERY_PROCESS_MARKER_FILENAME,
SHUTDOWN_PROCESS_MARKER_FILENAME };
private static final Logger operationLog =
LogFactory.getLogger(LogCategory.OPERATION, DataMover.class);
......
......@@ -102,7 +102,8 @@ final class DataMoverShutdownHook implements ITriggerable
terminable.terminate();
deleteFile(outgoingTargetLocationFile, "outgoing target location");
deleteFile(markerFile, "marker");
deleteFile(new File(DATAMOVER_PID_FILE_NAME), "Datamover pid file");
deleteFile(new File(DATAMOVER_PID_FILE_NAME), "Datamover pid");
deleteFile(new File(DataMover.SHUTDOWN_MARKER_FILENAME), "shutdown triggering");
exitHandler.exit(0);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment