Skip to content

launch.script can't stop app in supervisor #5273

Closed
@tietang

Description

@tietang

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions