Start and stop openhab web service

sudo service openhab stop
-and-
sudo systemctl stop openhab.service

neither seem to stop my openhab web interface. How do I turn it off and on via command line?

Try

sudo systemctl start openhab2.service
sudo systemctl stop openhab2.service

http://docs.openhab.org/installation/linux.html

# restart openhab instance
sudo systemctl start openhab2.service

1 Like

TY. Interesting, this worked. I would have expected the “openhab.service” commands to have caused an error rather than happily executing…something…if the correct command was openhab2.service.

Anyway, now I can start and stop it remotely Thanks again.

Blame your operating system :grinning: