Hi I want create a service application for Linux with spring boot but I doesn't not how I should be start, I searched in google and just find about 'running Spring Boot applications as a service' but I didn't find about how to create or any example.I want now when I create my service application with spring boot it need to any special dependency or config because I just wrote web application with spring boot until now.If you have any information please help me.
2 Answers
What you want is init.d to control it using systemctl/service start/stop, its super easy:
If you want more control just google how to create "service unit files" as this is just like a service descriptor that tells what and where to run and how
To run a Spring server side application, you can use web server for deployment. There are various type of web server eg. Tomcat,JBoss etc.
After build .War file you just deploy your application into web server. After deployment if server run your web app will also run.
Now your main target is start your web server after boot the machine. For this please check this tutorial , this tutorial
Hope this will help you.
Thanks :)
systemd
orupstart
or anything else.