collectd: ensure that /var/lib/collectd exists
authorJo-Philipp Wich <jo@mein.io>
Wed, 27 Apr 2016 19:45:36 +0000 (21:45 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 27 Apr 2016 19:45:36 +0000 (21:45 +0200)
With the conversion to procd a required mkdir has been dropped, readd it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
utils/collectd/Makefile
utils/collectd/files/collectd.init

index 5a808dd23e85733b97991af89471c0bb5414e721..ee292bf155f58e80d556c5a0a0c67d1b6c0dcad7 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=collectd
 PKG_VERSION:=5.5.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://collectd.org/files/
index c9afdee8d391b8aa82830f785377feaa3956be29..cb314d3516814a6706bfa70542e746501edf064c 100644 (file)
@@ -7,6 +7,7 @@ STOP=10
 USE_PROCD=1
 
 start_service() {
+       mkdir -m 0755 -p /var/lib/collectd
        procd_open_instance
        procd_set_param command /usr/sbin/collectd -f
        procd_close_instance