Best way to gracefully stop a (running :) ) OH2 server

What would be the best way to (gracefully) stop an already running OH2 runtime?

Assuming that the runtime is running on a Linux platform (Raspberry Pi, native or in docker image), all I can think of would be to send the process a kill signal.

If i like to stop or restart openhab on my Ubuntu i use

sudo service openhab stop or sudo service openhab restart

The same with start.


Kill should work gracefully as long as your not doing a kill -9 :slight_smile:

I believe that this uses kill.

As @sipvoip points out, kill ought to allow the JVM to close gracefully - if you watch the logging output after a kill you can see the various tasks closing down…

Thanks, I will use kill and see what happens :smiling_imp: