Start mosquitto.service on boot Hassbian 1.23

After hassbian-config install mosquitto the mosquitto server doesn’t start on reboot.

I have to sudo systemctl start mosquitto.service and sudo systemctl restart [email protected] and then everything works.

How do you start mosquito.service on boot? (before home assistant.service to avoid log errors)

sudo systemctl enable mosquitto.service

Add the mosquitto.service to your ‘after’ line in [email protected]

[Unit]
Description=Home Assistant for %i
After=network.target mosquitto.service influxdb.service
1 Like

Thanks! Exactly what I needed.

For anyone else running Hassbian 1.23 the location is /etc/systemd/system/[email protected]