Raspberry 重启后 Mosquitto 服务无法启动

Raspberry 重启后 Mosquitto 服务无法启动

我在 rpi 3 上运行 raspbian 和 domoticz。由于未知原因,Mosquitto 在重启后不再作为服务启动。我必须:

pi@domoticz:~ $ sudo systemctl enable mosquitto.service
mosquitto.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mosquitto

尝试卸载/清理/重新安装,但无济于事。Mosquito 位于 /etc.init.d 中

答案1

重启后

pi@domoticz:~ $ journalctl -u mosquitto
-- Logs begin at Thu 2016-11-03 18:16:43 CET, end at Wed 2019-07-17 23:52:15 CEST. --
juil. 17 23:51:33 domoticz systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker...
juil. 17 23:51:34 domoticz mosquitto[406]: Starting network daemon:: mosquitto.
juil. 17 23:51:34 domoticz systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.

pi@domoticz:~ $ sudo systemctl status mosquitto
● mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
   Loaded: loaded (/etc/init.d/mosquitto; generated; vendor preset: enabled)
   Active: active (exited) since Wed 2019-07-17 23:51:34 CEST; 1min 52s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 406 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/mosquitto.service

juil. 17 23:51:33 domoticz systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker...
juil. 17 23:51:34 domoticz mosquitto[406]: Starting network daemon:: mosquitto.
juil. 17 23:51:34 domoticz systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.

相关内容