mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Update java_servicefile
This commit is contained in:
parent
c3a12c4899
commit
471030e976
1 changed files with 1 additions and 10 deletions
|
@ -1,20 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=springpetclinic java application
|
Description=springpetclinic java application
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=ansible
|
User=ansible
|
||||||
# The configuration file application.properties should be here:
|
|
||||||
|
|
||||||
#change this to your workspace
|
|
||||||
|
|
||||||
|
|
||||||
#path to executable.
|
#path to executable.
|
||||||
#executable is a bash script which calls jar file
|
|
||||||
ExecStart=/usr/bin/java -jar /home/ansible/remote/workspace/springpet/target/spring-petclinic-2.7.3.jar
|
ExecStart=/usr/bin/java -jar /home/ansible/remote/workspace/springpet/target/spring-petclinic-2.7.3.jar
|
||||||
|
|
||||||
SuccessExitStatus=143
|
SuccessExitStatus=143
|
||||||
TimeoutStopSec=10
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue