diff --git a/java_servicefile b/java_servicefile index e9fdbc679..b00107230 100644 --- a/java_servicefile +++ b/java_servicefile @@ -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