I am trying to run a spring-boot application as a service in linux box so that I can start and stop it as a jenkins job.
As per the suggestions in for this question Spring Boot application as a Service I created the soft link
$sudo link -s /opt/jenkins/workspace/myapp/myapp.jar /etc/init.d/myapp
Now when I am trying to run it from the jenkins command prompt I get command not found
$ sudo /etc/init.d/myapp start
sudo: /etc/init.d/myapp: command not found
I am using spring boot 1.3 and java8