hashipi

Raspberry Pi home lab with Nomad and OpenBao
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | Pull requests |Archive | README

commit 3dc5c9dc0d0ef912b535615b81bb30f424084732
parent 3413ffe2a9cb7111e5c9e0fc62dba6c1559d58ae
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 29 Nov 2025 01:56:51 +0100

feat(intel): RuntimeDirectory override for collectd

Diffstat:
Mdebian_postinstall.sh | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian_postinstall.sh b/debian_postinstall.sh @@ -42,6 +42,13 @@ profile lxc-gatus flags=(attach_disconnected,mediate_deleted) { } EOF +# Systemd override to store socket file in runtime directory +mkdir -p /etc/systemd/system/collectd.service +cat <<EOF > /etc/systemd/system/collectd.service.d/override.conf +[Service] +RuntimeDirectory=collectd +EOF + # Configure Collectd to report file system usage cat <<EOF > /etc/collectd/collectd.conf LoadPlugin df @@ -84,7 +91,7 @@ while sleep "$INTERVAL"; do # Check if any of the raid members are degraded # - https://www.kernel.org/doc/html/v4.15/admin-guide/md.html # - https://github.com/TwiN/gatus#external-endpoints - if [[ $(cat /sys/block/$MD_RAID/md/degraded) -gt 0 ]] + if [ $(cat /sys/block/$MD_RAID/md/degraded) -gt 0 ] then # At least one raid member is in degraded state # Valid collectd types can be found in /usr/share/collectd/types.db