Closed
Description
org/springframework/boot/loader/tools/launch.script
supervisor need to get APP PID that is running, but "sh spring-boot-app-exec.jar run" get two process, one is shell process, another is spring-boot-app process, but supervisor got a shell process, when executing stop command in supervisor, can't stop spring-boot-app process.
supervisor *.conf
command= sh spring-boot-app-exec.jar run
I add "exec" to "org/springframework/boot/loader/tools/launch.script" before "$command" , it works!
$command
to exec $command
run() {
pushd "$(dirname "$jarfile")" > /dev/null
exec $command
result=$?
popd
return "$result"
}
Metadata
Metadata
Assignees
Labels
No labels