I have an AWS EC2, Ubuntu-16.04 instance where Mosquitto is installed. I noticed that, the
mosquitto process dies out and nothing apparent seems to be appear in the log
When I run this command, the service won't start!
sudo service mosquitto start
I don't know where to look for to understand what went wrong. Currently, I am managing with
sudo -u mosquitto /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf &
Any suggestions where to look for service start-up issues?
systemctl status mosquitto.service output
ubuntu@ip-172-xx-xx-xx:~$ systemctl status mosquitto.service * mosquitto.service - LSB: mosquitto MQTT v3.1 message broker Loaded: loaded (/etc/init.d/mosquitto; bad; vendor preset: enabled) Active: inactive (dead) since Thu 2018-07-12 07:56:54 IST; 5h 35min ago Docs: man:systemd-sysv-generator(8) Process: 6552 ExecStop=/etc/init.d/mosquitto stop (code=exited, status=0/SUCCESS) Process: 16941 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS) Jul 12 07:23:27 ip-172-xx-xx-xx systemd: Started LSB: mosquitto MQTT v3.1 message broker. Jul 12 07:56:53 ip-172-xx-xx-xx systemd: Stopping LSB: mosquitto MQTT v3.1 message broker... Jul 12 07:56:54 ip-172-xx-xx-xx mosquitto: * Stopping network daemon: mosquitto Jul 12 07:56:54 ip-172-xx-xx-xx mosquitto: ...done. Jul 12 07:56:54 ip-172-xx-xx-xx systemd: Stopped LSB: mosquitto MQTT v3.1 message broker. Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.