Is there a way to shutdown a Play application/server programaticaly (from within play itself)

I managed to do this with System.exit(1), but this also shutdowns sbt in deve mode.

I found some resources like:

But they doesn’t seem to work in Java or newer Play 2.6.x

1 Like