nfsmon provides simple monitoring for NFS mounts. When a stale mount is detected, a user defined remount function is called.
package main
import "context"
import "github.com/glinton/nfsmon"
func main() {
ctx := context.Background()
nfsmon.Watch(ctx)
}