We edit /etc/rc/local to automatically load openhab.
$sudo nano /etc/rc.local,
And append the following command before exit(0):
sudo /opt/openhab/start.sh &
As we implemented a python script to act as a MQTT bridge between the Arduino style code and the openhab server, we need to start these services accordingly:
python /home/ubuntu/mqtt_publish.py & sleep 600 && /home/ubuntu/c_enviroment/output/test/NRF24L01_RX &