You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the best way to restart the camera if the NFS is not working?
For now,I am using if ! timeout -t 10 df -h | grep -q /media/mmcblk0p1 ; then reboot -f -d 10;fi to reboot if NFS connection is stale or if my NFS server had restarted. However, if NFS is unreachable for a while then there is a reboot loop unless there is a local file to keep track of restarts.
Is there a better way to test if an NFS share is available again after a disruption and only then restart the camera. Normally you could do this with showmount, but that does not exist on the wyzecam.
The text was updated successfully, but these errors were encountered:
i believe the current behavior in my script is to keep trying till it the NFS share mounts. So if you add another loop at the end of mount_nfs.sh with your command, you will be able to detect the NFS stale connection and reboot the device.
If your NFS server is down for a while, at next reboot, it will loop infinitely trying to mount the share. Thus you will not be in a reboot loop.
What's the best way to restart the camera if the NFS is not working?
For now,I am using
if ! timeout -t 10 df -h | grep -q /media/mmcblk0p1 ; then reboot -f -d 10;fi
to reboot if NFS connection is stale or if my NFS server had restarted. However, if NFS is unreachable for a while then there is a reboot loop unless there is a local file to keep track of restarts.Is there a better way to test if an NFS share is available again after a disruption and only then restart the camera. Normally you could do this with showmount, but that does not exist on the wyzecam.
The text was updated successfully, but these errors were encountered: