:: [DNG] Mosquitto cannot be started, …
Página Principal
Delete this message
Reply to this message
Autor: Steffen Dettmer
Data:  
Para: dng
CC: Roger A. Light
Assunto: [DNG] Mosquitto cannot be started, because no /var/mosquitto directory (Devuan stable)
Hi,

mosquitto does not start, because there is no /var/mosquitto directory
for its PID file. Actually it cannot even be installed, because dpkg
script already wants it.
Also creating directory does not solve the problem, because /run is
tmpfs, so manually created directory won't be there on next reboot.

As workaround, I simply added

mkdir -p /run/mosquitto/ ; chown mosquitto /run/mosquitto

to /etc/init.d/mosquitto script. I guess this in Debian is done by
some systemd magic, which could be needed to be "emulated" in Devuan,
so I write here.

What should I do?

Steffen

Devuan GNU/Linux 4 (chimaera)
mosquitto      2.0.11-1
Linux RefVm5 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30)
x86_64 GNU/Linux