mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Polish DockerComposeLifecycleManager
This commit is contained in:
parent
607ed86edb
commit
de1ca5e60f
@ -121,7 +121,9 @@ class DockerComposeLifecycleManager {
|
||||
if (lifecycleManagement.shouldStart() && runningServices.isEmpty()) {
|
||||
start.getCommand().applyTo(dockerCompose, start.getLogLevel());
|
||||
runningServices = dockerCompose.getRunningServices();
|
||||
wait = (wait != Wait.ONLY_IF_STARTED) ? wait : Wait.ALWAYS;
|
||||
if (wait == Wait.ONLY_IF_STARTED) {
|
||||
wait = Wait.ALWAYS;
|
||||
}
|
||||
if (lifecycleManagement.shouldStop()) {
|
||||
this.shutdownHandlers.add(() -> stop.getCommand().applyTo(dockerCompose, stop.getTimeout()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user