update service and env files

This commit is contained in:
heyethereum
2024-06-19 23:49:12 +08:00
parent 2f4faf9ead
commit 4a3810af2a
3 changed files with 18 additions and 6 deletions

14
springboot-app.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=Spring Boot Application
After=network.target
[Service]
User=ssm-user
EnvironmentFile=/etc/systemd/system/springboot-app.var
ExecStart=/usr/bin/java -jar /home/ssm-user/app-0.0.1-SNAPSHOT.jar
SuccessExitStatus=143
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target