
package com.creactiviti.piper;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class PiperApplication {

	public static void main(String[] args) {
		SpringApplication.run(PiperApplication.class, args);
	}
}

@@ -145,16 +145,81 @@
 ication;
+%0Aimport org.springframework.boot.system.ApplicationPidFileWriter;
 %0A%0A@Sprin
@@ -333,37 +333,166 @@
 tion
-.run(PiperApplication.class, 
+ springApplication = new SpringApplication(PiperApplication.class);%0A%09%09springApplication.addListeners(new ApplicationPidFileWriter());%0A%09%09springApplication.run(
 args

write pid file