MQTT Autostart after reboot

Hi Everyone,

i am a absolut beginner of coding and OPENhab. I have search so much in the documentation but I can’t find an answer. Now I’m dare to ask in the Forum :slight_smile:

Is there any way to Autostart the MQTT Brocker when the Raspberry is booting?
In Case of an power outage it will be Berry helpful.

At the moment everytime when the Raspberry reboots i have to restart manuel the broker with: mosquitto -v (directly with the Keyboard on the Raspberry)

Thank you a lot for your answer and your patience with me:).

Habe Great Day
Marvin

  • Platform information: Rasperry Pi 3b+
    • openHAB version:3.0

See section 1 of this guide:

In short:

sudo systemctl daemon-reload
sudo systemctl enable mosquitto

I think you already got the answer, but just in case not, here’s the notes I put down when I first set up mosquito a long time ago:

sudo apt-get install mosquitto mosquitto-clients
service mosquitto status
sudo update-rc.d mosquitto defaults

http://agilerule.blogspot.com/2016/05/install-mqtt-mosquitto-on-raspberry-pi.html

How time flies!

Hehe, that wasn’t my page though. It was one of the first hit when I searched for the info. I started OH around 2018; still a long time :).

I think home automation is definitely a good hobby. It never ends.