update service and env files
This commit is contained in:
14
springboot-app.service
Normal file
14
springboot-app.service
Normal 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
|
||||
Reference in New Issue
Block a user