Browse Source

Registering PID file to be deleted on JVM exit

pull/793/merge
Lukasz Kryger 12 years ago committed by Dave Syer
parent
commit
e7484c66f5
  1. 1
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidListener.java

1
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/system/ApplicationPidListener.java

@ -80,6 +80,7 @@ public class ApplicationPidListener implements @@ -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));

Loading…
Cancel
Save