If you run an OpenHAB 2 system, you maybe like to start, restart or stop your system for various reasons. Systemctl allows to in a simple manner start, restart and stop the openHAB service.
Systemctl allows to control the states of services run on a Linux system. Since openhabian is Linux based and it consists of the systemctl program, we will in this how to leverage on the systemctl command.
To execute the below commands you leverage on the openhabian terminal and simply type the comments as in the below.
Start the OpenHAB service
sudo systemctl start openhab2.service
Restart the OpenHAB service
sudo systemctl restart openhab2.service
Stop the OpenHAB service
sudo systemctl stop openhab2.service