Skip to contentSkip to conversation

collectd: remove empty /var/run directory

PATCH New Jonathan Liu 1 participant 1 message Jul 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 collectd: remove empty /var/run directory

The /var/run directory is already created by base-files.

---
 meta-oe/recipes-extended/collectd/collectd_5.2.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-extended/collectd/collectd_5.2.2.bb +3 -0
index 8641530..20df494 100644
@@ -39,6 +39,9 @@ do_install_append() {
 
     # Fix configuration file to allow collectd to start up
     sed -i 's!^#FQDNLookup[ \t]*true!FQDNLookup   false!g' ${D}${sysconfdir}/collectd.conf
+
+    rmdir "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 }
 
 INITSCRIPT_NAME = "collectd"
Signature · 1 line
1.8.3.2