I have a setup where I share media from a Windows PC to a RPi 3b running LibreELEC 8.2.5 using CIFS mounts. I'm using the method outlined on the Wiki page (mount files in /storage/.config/system.d/). The problem I'm experiencing is that after the Windows PC has been asleep and woken, mounts are unavailable on the Pi (even though they're online) and the only method I know of to get them back is rebooting the Pi. Is there anything that can be added to the *.mount files to automatically remount the shares when they become available again/accessed? Or maybe a simple script that can be triggered remotely.
I realize this setup isn't optimal and I'm planning to get a NAS but if there's a way to make this work in the meantime it would be great.
EDIT1: Using plink I made a batch file that sends systemctl restart storage-*mountname*.mount for every mount point. While this works, it's a bit of an ugly workaround. Saves me from having to restart the Pi though.
EDIT2: Adding noauto to Options= in the .mount files seems to have done ... something. Now instead of saying that the file is no longer available in Kodi it hangs when host is not online and seems to play the file normally when host is online again (resumed from sleep in this case). I though noauto only meant share isn't automatically mounted on boot but instead when first accessed. Is this option in fact the on-demand mounting that I'm looking for?