The systemd unit file should recreate the folder each time the service is started. It uses /var/run/mosquitto instead of /run/mosquitto, but that should work through the /var/run symlink.
Does this definitely not work for you? On Wed, 24 Feb 2021 at 01:15, Alexandre Detiste <alexandre.deti...@gmail.com> wrote: > > Package: mosquitto > Version: 2.0.7-3 > Severity: minor > > /run/mosquitto shows up in cruft-ng report as existing in dpkg database > but missing from the filesystem, if service has been disabled before boot. > > please create /run/mosquitto dynamically on boot > > fix_permissions() in postinst seams not enough. > > Greetings, > > > -- System Information: > Debian Release: bullseye/sid > APT prefers testing > APT policy: (501, 'testing') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 5.10.0-3-amd64 (SMP w/2 CPU threads) > Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), > LANGUAGE=fr_BE:fr > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages mosquitto depends on: > ii adduser 3.118 > ii libc6 2.31-9 > ii libcjson1 1.7.14-1 > ii libdlt2 2.18.6-1 > ii libmosquitto1 2.0.7-3 > ii libssl1.1 1.1.1j-1 > ii libsystemd0 247.3-1 > ii libwebsockets16 4.0.20-2 > ii libwrap0 7.6.q-31 > ii lsb-base 11.1.0 > > mosquitto recommends no packages. > > Versions of packages mosquitto suggests: > pn apparmor <none> > > -- no debconf information