mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-06 01:09:02 +00:00
Registering PID file to be deleted on JVM exit
This commit is contained in:
+1
@@ -80,6 +80,7 @@ public class ApplicationPidListener implements
|
||||
if (created.compareAndSet(false, true)) {
|
||||
try {
|
||||
new ApplicationPid().write(this.file);
|
||||
this.file.deleteOnExit();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
logger.warn(String.format("Cannot create pid file %s", this.file));
|
||||
|
||||
Reference in New Issue
Block a user