From 30db7379ba631618f58bef2dc3b91feef7397437 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 27 Jul 2025 23:05:54 +0300 Subject: Update content for html --- gemfeed/atom.xml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) (limited to 'gemfeed/atom.xml') diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 311b5eda..db00b626 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2025-07-20T09:06:35+03:00 + 2025-07-27T23:04:32+03:00 foo.zone feed To be in the .zone! @@ -1618,6 +1618,22 @@ STATE_FILE="/var/run/nfs-mount.state" touch "$LOCK_FILE" trap "rm -f $LOCK_FILE" EXIT +mount_it () { + if mount "$MOUNT_POINT"; then + echo "NFS mount fixed at $(date)" | systemd-cat -t nfs-monitor -p info + rm -f "$STATE_FILE" + else + echo "Failed to fix NFS mount at $(date)" | systemd-cat -t nfs-monitor -p err + exit 1 + fi +} + +# Quick check - ensure it's actually mounted +if ! mountpoint -q "$MOUNT_POINT"; then + echo "NFS mount not found at $(date)" | systemd-cat -t nfs-monitor -p err + mount_it +fi + # Quick check - try to stat a directory with a very short timeout if timeout 2s stat "$MOUNT_POINT" >/dev/null 2>&1; then # Mount appears healthy @@ -1641,12 +1657,7 @@ echo "Attempting to fix stale NFS mount at $(date)" umount -f "$MOUNT_POINT" 2>/dev/null sleep 1 -if mount "$MOUNT_POINT"; then - echo "NFS mount fixed at $(date)" | systemd-cat -t nfs-monitor -p info - rm -f "$STATE_FILE" -else - echo "Failed to fix NFS mount at $(date)" | systemd-cat -t nfs-monitor -p err -fi +mount_it EOF [root@r0 ~]# chmod +x /usr/local/bin/check-nfs-mount.sh -- cgit v1.2.3