From 788cf1352ee8264fcfcb256d29f2e3c847b350c1 Mon Sep 17 00:00:00 2001 From: lelo Date: Sat, 29 Mar 2025 08:48:23 +0000 Subject: [PATCH] soft mount for nfs to prevent unresponsive app --- check_ssh_tunnel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_ssh_tunnel.sh b/check_ssh_tunnel.sh index e560d62..4277192 100755 --- a/check_ssh_tunnel.sh +++ b/check_ssh_tunnel.sh @@ -122,7 +122,7 @@ for server in "${SERVERS[@]}"; do # Mount the NFS share if it's not already mounted. if ! is_nfs_mounted "${MOUNT_POINT}"; then echo "[INFO] NFS share is not mounted at ${MOUNT_POINT}. Attempting to mount..." - sudo mount -t nfs -o port="${LOCAL_PORT}",nolock,soft 127.0.0.1:"${NFS_SHARE}" "${MOUNT_POINT}" + sudo mount -t nfs -o ro,port="${LOCAL_PORT}",nolock,soft,timeo=5,retrans=3 127.0.0.1:"${NFS_SHARE}" "${MOUNT_POINT}" if is_nfs_mounted "${MOUNT_POINT}"; then echo "[SUCCESS] NFS share mounted successfully at ${MOUNT_POINT}." else