What is the correct way to stop a Vert.x app that has been started with the Vert.x command line?
I am trying to create a stop script for a Vert.x app. It works on Windows, but not on Linux.
I have created a timer handler in my verticle that looks for a file, and when that file is found,
shuts down Vert.x (vertx.close()) after properly closing other resources. vertx.close() is called
from inside the deployed verticle (in the timer handler).
On windows this causes vertx to shutdown properly, but on Linux it does not.
One big difference is that on Windows I have been running Vert.x embedded, whereas
on Linux I have been running Vert.x via the Vert.x command line tool. In fact, I just
double checked - when running Vert.x via the command line tool on Windows, it also
does not shut down.
By not shutting down I mean it does call the verticle stop() handlers. But the Java process
doesn't exit.
So, what is the correct way to stop a Vert.x app that has been started with the Vert.x command line?