I've generated a Spring Boot app. with maven, moved the jar into
/var/licence/licence-0.0.1-SNAPSHOT.jar
Then
sudo ln -s /var/licence/licence-0.0.1-SNAPSHOT.jar /etc/init.d/licence
But when I type
lopes@localhost:/var/licence$ service licence start
licence: unrecognized service
These are the attributes of /etc/init.d/licence
lrwxrwxrwx 1 root root 46 Mar 27 18:17 licence -> /var/licence/licence-0.0.1-SNAPSHOT.jar
This is my pom.xml:
....
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
</plugins>
</build>
...