X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=utils%2Fcollectd%2Ffiles%2Fcollectd.init;h=b07416f4e92f0cc2c748bb5f848525483fa411a8;hb=38235de9c3a6d0574f3293178617549822fbc738;hp=89af365c2917ba5b266f96a98cd2f39d620c25a7;hpb=edc41b26ab1e78d55e87c79562d8430b87d314a7;p=feed%2Fpackages.git diff --git a/utils/collectd/files/collectd.init b/utils/collectd/files/collectd.init index 89af365c29..b07416f4e9 100644 --- a/utils/collectd/files/collectd.init +++ b/utils/collectd/files/collectd.init @@ -11,6 +11,11 @@ NICEPRIO=5 CONFIG_STRING="" +[ -d /usr/libexec/collectd ] && { + find /usr/libexec/collectd ! -perm 0500 -exec chmod 0500 '{}' '+' + find /usr/libexec/collectd ! \( -user nobody -a -group nogroup \) -exec chown nobody:nogroup '{}' '+' +} + process_exec() { printf "\n" >> "$COLLECTD_CONF" config_foreach process_exec_sections exec_input "Exec"