Skip to content

Commit

Permalink
collectd: make sure /run/collectd exists
Browse files Browse the repository at this point in the history
this could cause kinda serious issues with the IO reduction things
graphs1090 readback script also changed to avoid those issues in the
future
  • Loading branch information
wiedehopf committed May 23, 2024
1 parent f4a1a89 commit 821bcdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rootfs/etc/s6-overlay/scripts/collectd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion rootfs/etc/s6-overlay/startup.d/08-graphs1090-init
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 821bcdd

Please sign in to comment.