I have a SMB share via my router that I use to share docs between 4 rPi4B's. I mount the drive on boot via gstab with the following line:
//fritz.box/fritzbox/NAS_USB /home/pi/Documents/Dateiserver cifs vers=1.0,credentials=/home/pi/.smbcredentials,uid=1000,gid=1000,sec=ntlm, 0 0
Every once in a while the fileserver will go offline and this means that the 4 Pi's all lose access to the shared files. I know it's a simple step for me to open a terminal and run
mount -a but it's not practical to get others in the office to do this and I'm not always around when it happens.
Is there an efficient way of remounting the network share when it becomes available again?
I know I could run
mount -a every few minutes as a cron job but that just seems like it should be an absolute last option.