Have you tried sending a shutdown commnad using the servicemix-client?
Sending direct commands from the client
The client jar does not yet support passing command line arguments to the remote ServiceMix Kernel.
In order to do so, you can create a text file containing the commands and use the system console to redirect this file to the input stream:
echo osgi/shutdown > command.txt
java -jar lib/servicemix-client.jar < command.txt
Let us know if this works for you, also what version of the ESB are you using?
thanks for your reply. I found the answer I looked for in your answer
I didn't use the osgi command shutdown before.
So now, I connect remotely using ssh and osgi/shutdown stops the kernel in a clean way. Perfect!
Thanks for your help.