diff --git a/java_servicefile b/java_servicefile index 244ad931a..e9fdbc679 100644 --- a/java_servicefile +++ b/java_servicefile @@ -5,11 +5,11 @@ User=ansible # The configuration file application.properties should be here: #change this to your workspace -WorkingDirectory=/home/ansible/remote/workspace/ + #path to executable. #executable is a bash script which calls jar file -ExecStart=/usr/bin/java -jar 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 TimeoutStopSec=10