springcloud-community / springcloud-comment

0 stars 0 forks source link

post/2022-02/running-as-system-service/ #4

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Running the Spring Boot application as a Linux system service - Spring Cloud

I’m working on a legacy project today. There is a Spring Boot project deployed on a physical server on the customer’s intranet, and recently, for some reason, the server has been rebooting frequently. It’s a pain to manually start the Spring Boot project after each reboot, so I’m going to configure it to turn on a self-starting service. This was done with the help of systemd. It provides a solution

https://www.springcloud.io/post/2022-02/running-as-system-service/

Charler2017 commented 1 year ago

i wondered how to use noroot user to manage systemd services.

my-lab-23 commented 1 year ago

Add:

[Service] User=your_user