mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 09:05: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]
|
||||
Description=springpetclinic java application
|
||||
|
||||
[Service]
|
||||
User=ansible
|
||||
# The configuration file application.properties should be here:
|
||||
|
||||
#change this to your workspace
|
||||
|
||||
|
||||
#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
|
||||
|
||||
SuccessExitStatus=143
|
||||
TimeoutStopSec=10
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in a new issue