avahi-daemon attempts to set up socket in /var/run rather than /run
Description:
The systemd socket configuration file contains a reference to /var/run/avahi-daemon/socket. On service start, systemd logs a complaint about the obsolete path before creating socket in /run/avahi-daemon/socket
Additional info:
package version(s): 1:0.8+r189+g35bb1ba-1 Error from systemd journal: systemd[1]: /usr/lib/systemd/system/avahi-daemon.socket:22: ListenStream= references a path below legacy directory /var/run/, updating /var/run/avahi-daemon/socket → /run/avahi-daemon/socket; please update the unit file accordingly.
Amelioration
A dropin .conf file in /etc/systemd/system/avahi-daemon.socket.d/:
[Socket] ListenStream=@runstatedir@/avahi-daemon/socket
Proposed Fix
Per upstream (see file avahi-daemon.socket.in), the directory is set by the buildtime variable "runstatedir" introduced by commit 9350e8e.
Steps to reproduce:
- Reload systemd
systemctl daemon-reload
- Error is logged (see above)