Using normal spring mvn commands, I can start a spring boot application from command line and terminate it with Control+c. I however have created a bunch of services which I
I would follow the documentation to install Spring-Boot application as a Unix/Linux service.
All you have to do is to add this dependency to your pom.xml:
org.springframework.boot
spring-boot-maven-plugin
true
After adding the plugin you should install and create a symlink to your application (exact part of documentation):
Assuming that you have a Spring Boot application installed in
/var/myapp, to install a Spring Boot application as an init.d service simply create a symlink:
$ sudo ln -s /var/myapp/myapp.jar /etc/init.d/myappOnce installed, you can start and stop the service in the usual way. For example, on a Debian based system:
$ service myapp start
Then you are able to create a bash script to start, stop or restart your applications in a clean way.