From c0b0b913ac748d307653cfbf0b2ac08e98f44585 Mon Sep 17 00:00:00 2001 From: wiedehopf Date: Fri, 24 May 2024 01:47:03 +0200 Subject: [PATCH] collectd: make sure /run/collectd exists (#189) this could cause kinda serious issues with the IO reduction things graphs1090 readback script also changed to avoid those issues in the future --- rootfs/etc/s6-overlay/scripts/collectd | 3 +++ rootfs/etc/s6-overlay/startup.d/08-graphs1090-init | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/s6-overlay/scripts/collectd b/rootfs/etc/s6-overlay/scripts/collectd index 99d3431..c5900c9 100755 --- a/rootfs/etc/s6-overlay/scripts/collectd +++ b/rootfs/etc/s6-overlay/scripts/collectd @@ -3,6 +3,9 @@ source /scripts/common +# make sure /run/collectd exists +mkdir -p /run/collectd + if chk_enabled "${GRAPHS1090_DISABLE}" || chk_enabled "${TAR1090_DISABLE}"; then exec sleep infinity diff --git a/rootfs/etc/s6-overlay/startup.d/08-graphs1090-init b/rootfs/etc/s6-overlay/startup.d/08-graphs1090-init index 0123cd1..e0f5fdc 100755 --- a/rootfs/etc/s6-overlay/startup.d/08-graphs1090-init +++ b/rootfs/etc/s6-overlay/startup.d/08-graphs1090-init @@ -4,7 +4,6 @@ source /scripts/common mkdir -p /run/graphs1090 -mkdir -p /run/collectd/localhost # If ${GRAPHS1090_DISABLE} is set, remove access to the graphs1090 website. We don't need to worry about putting this file back # after graphs1090 is re-enabled, because when changing env params, the container MUST be recreated.