Page 1 of 1

How to Autorun Mosquitto on Bootup?

Posted: Saturday 09 December 2017 21:42
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 ?