Add "INIT INFO" property substitutions

Update the "INIT INFO section" of `launch.script` to include
`initInfoProvides`, `initInfoShortDescription` and `initInfoDescription`
property substitutions.

The Maven plugin has been updated to populate substitutions with
`${project.artifactId}`, `${project.name}` and `${project.description}`.

Fixes gh-4245
This commit is contained in:
Phillip Webb
2015-10-20 16:49:06 -07:00
parent fe42ced7ab
commit a7a2aa0461
5 changed files with 56 additions and 6 deletions

View File

@@ -10,13 +10,13 @@
#
### BEGIN INIT INFO
# Provides: spring-boot-application
# Provides: {{initInfoProvides:spring-boot-application}}
# Required-Start: $remote_fs $syslog $network
# Required-Stop: $remote_fs $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Spring Boot Application
# Description: Spring Boot Application
# Short-Description: {{initInfoShortDescription:Spring Boot Application}}
# Description: {{initInfoDescription:Spring Boot Application}}
# chkconfig: 2345 99 01
### END INIT INFO