Spring Boot application as a Service

How to configure nicely Spring Boot application packaged as executable jar as a Service in the Linux system? Is this recommended approach, or should I convert this app to war and install it into Tomcat?

Currently, I can run Spring boot application from the screen session, which is nice but requires manual start after a server reboot.

What I’m looking for is general advice/direction or sample init.d the script, if my approach with executable jar is proper.

20 Answers
20

Leave a Comment