Add service to try to remount nfs share every 10 seconds

This commit is contained in:
2025-04-04 23:10:01 -07:00
parent f6ef5658c3
commit 5c84f13242

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Persistent NFS remount for /mnt/sdb
After=network.target
[Service]
Type=simple
ExecStart=/bin/sh -c "while true; do mount -v /mnt/sdb && break || sleep 10; done"
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target