Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ec537b30
Commit
ec537b30
authored
Jan 07, 2017
by
Alessandro Falappa
Committed by
Andy Wilkinson
Jan 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make start/stop run-levels configurable in INIT-INFO of launch.script
See gh-7008 Closes gh-7902
parent
353829c4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
deployment.adoc
spring-boot-docs/src/main/asciidoc/deployment.adoc
+7
-0
launch.script
...urces/org/springframework/boot/loader/tools/launch.script
+2
-2
DefaultLaunchScriptTests.java
...framework/boot/loader/tools/DefaultLaunchScriptTests.java
+11
-1
No files found.
spring-boot-docs/src/main/asciidoc/deployment.adoc
View file @
ec537b30
...
...
@@ -604,6 +604,13 @@ The following property substitutions are supported with the default script:
|`initInfoRequiredStop`
|The `Required-Stop` section of "`INIT INFO`". Defaults to `$remote_fs $syslog $network`.
|`initInfoDefaultStart`
|The `Default-Start` section of "`INIT INFO`". Defaults to `2 3 4 5`.
|`initInfoDefaultStop`
|The `Default-Stop` section of "`INIT INFO`". Defaults to `0 1 6`.
|`initInfoShortDescription`
|The `Short-Description` section of "`INIT INFO`". Defaults to `Spring Boot Application`
for Gradle and to `${project.name}` for Maven.
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
View file @
ec537b30
...
...
@@ -13,8 +13,8 @@
# Provides: {{initInfoProvides:spring-boot-application}}
# Required-Start: {{initInfoRequiredStart:$remote_fs $syslog $network}}
# Required-Stop: {{initInfoRequiredStop:$remote_fs $syslog $network}}
# Default-Start:
2 3 4 5
# Default-Stop:
0 1 6
# Default-Start:
{{initInfoDefaultStart:2 3 4 5}}
# Default-Stop:
{{initInfoDefaultStop:0 1 6}}
# Short-Description: {{initInfoShortDescription:Spring Boot Application}}
# Description: {{initInfoDescription:Spring Boot Application}}
# chkconfig: {{initInfoChkconfig:2345 99 01}}
...
...
spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/DefaultLaunchScriptTests.java
View file @
ec537b30
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -71,6 +71,16 @@ public class DefaultLaunchScriptTests {
assertThatPlaceholderCanBeReplaced
(
"initInfoRequiredStop"
);
}
@Test
public
void
initInfoDefaultStartCanBeReplaced
()
throws
Exception
{
assertThatPlaceholderCanBeReplaced
(
"initInfoDefaultStart"
);
}
@Test
public
void
initInfoDefaultStopCanBeReplaced
()
throws
Exception
{
assertThatPlaceholderCanBeReplaced
(
"initInfoDefaultStop"
);
}
@Test
public
void
initInfoShortDescriptionCanBeReplaced
()
throws
Exception
{
assertThatPlaceholderCanBeReplaced
(
"initInfoShortDescription"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment