mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Create java_servicefile
This commit is contained in:
parent
6ef35dbd6c
commit
7cd700ff98
1 changed files with 20 additions and 0 deletions
20
java_servicefile
Normal file
20
java_servicefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=springpetclinic java application
|
||||
[Service]
|
||||
User=ansible
|
||||
# The configuration file application.properties should be here:
|
||||
|
||||
#change this to your workspace
|
||||
WorkingDirectory=/home/ansible/
|
||||
|
||||
#path to executable.
|
||||
#executable is a bash script which calls jar file
|
||||
ExecStart=/usr/bin/java -jar 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