How to Autorun Mosquitto on Bootup?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
costo
Posts: 71
Joined: Tuesday 11 August 2015 17:35
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

How to Autorun Mosquitto on Bootup?

Post by costo »

Working with Domoticz stable on a RasPi2b. OS is jessie 4.4.16
I installed mosquitto it works with several esp8266/espeasy nodes that talk MQTT to Domoticz. Now I like to make mosquitto autorun on bootup, so I do not have to login and run the command "mosquitto" every time after a reboot.

I cannot figure out how to do this. I think I have to add a line or something in file /etc/mosquitto/conf.d/mosquitto.conf.

This file looks like this ( everything else is commented out)

Code: Select all

pid_file /var/run/mosquitto.pid

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d
bind_address 192.168.178.38
port 1883
Does anyone have a hint for me ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest