Update java_servicefile

This commit is contained in:
nagarjuna33 2023-03-16 16:50:21 +05:30 committed by GitHub
parent c3a12c4899
commit 471030e976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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