From 02363b38eb3d06dbf6915ce552a92fa629f5e333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=89=E7=94=B0=20=E5=B0=9A=E5=BC=98?= Date: Fri, 20 Nov 2015 21:23:08 +0900 Subject: [PATCH 1/2] Make launch script's chkconfig configurable via a property Closes gh-4564 --- .../org/springframework/boot/loader/tools/launch.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script index 0d0ac169c37..26639c1e484 100755 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script @@ -17,7 +17,7 @@ # Default-Stop: 0 1 6 # Short-Description: {{initInfoShortDescription:Spring Boot Application}} # Description: {{initInfoDescription:Spring Boot Application}} -# chkconfig: 2345 99 01 +# chkconfig: {{initInfoChkconfig:2345 99 01}} ### END INIT INFO [[ -n "$DEBUG" ]] && set -x From c003efc666b45215235a202b86c0639c2c71ff28 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 2 Dec 2015 10:21:33 +0000 Subject: [PATCH 2/2] Document new initInfoChkconfig property supported by launch.script See gh-4564 --- spring-boot-docs/src/main/asciidoc/deployment.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/deployment.adoc b/spring-boot-docs/src/main/asciidoc/deployment.adoc index 45e3fbf11b9..6cf76ccbe84 100644 --- a/spring-boot-docs/src/main/asciidoc/deployment.adoc +++ b/spring-boot-docs/src/main/asciidoc/deployment.adoc @@ -545,6 +545,9 @@ for Gradle and to `${project.name}` for Maven. |`initInfoDescription` |The `Description` section of "`INIT INFO`". Defaults to `Spring Boot Application` for Gradle and to `${project.description}` (falling back to `${project.name}`) for Maven. + +|`initInfoChkconfig` +|The `chkconfig` section of "`INIT INFO`". Defaults to `2345 99 01`. |===