diff mbox series

[meta-networking,2/2] squid: use /run instead of /var/run in tmpfiles.d

Message ID 20261026174245.1478726-2-patrick.wicki@subset.ch
State Accepted
Headers show
Series [meta-networking,1/2] squid: install systemd unit without executable bit | expand

Commit Message

Patrick Wicki Oct. 26, 2026, 5:42 p.m. UTC
From: Patrick Wicki <patrick.wicki@siemens.com>

systemd-tmpfiles warns about the legacy path:

  /etc/tmpfiles.d/squid.conf:1: Line references path below legacy
  directory /var/run/, updating /var/run/squid → /run/squid; please
  update the tmpfiles.d/ drop-in file accordingly.

Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
---
 meta-networking/recipes-daemons/squid/squid_7.7.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-daemons/squid/squid_7.7.bb b/meta-networking/recipes-daemons/squid/squid_7.7.bb
index bda8f124cb..7649342596 100644
--- a/meta-networking/recipes-daemons/squid/squid_7.7.bb
+++ b/meta-networking/recipes-daemons/squid/squid_7.7.bb
@@ -122,7 +122,7 @@  do_install:append() {
 
         # Configure tmpfiles.d
         install -d ${D}${sysconfdir}/tmpfiles.d
-        echo "d ${localstatedir}/run/${BPN} 0755 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
+        echo "d ${runtimedir}/${BPN} 0755 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
         echo "d ${localstatedir}/log/${BPN} 0750 squid squid -" >> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
     fi