A plea for help from a Linux noob
For several months I have monitored my DSL connection using DSLstats on a Raspberyy Pi Zero W. Thanks to an excellent dsl.desktop file from roseway the program runs from boot.
I have recently started to save the data to a NAS on my LAN by modifying /etc/fstab to mount the NAS when the Pi boots, and changing the Snapshots and DataStore locations in DSLstats appropriately. Both the Pi and the NAS are allocated fixed IP addresses by the router.
So far so good...until we have a power cut!
When the power comes back on, the modem/router and Pi boot up OK, but the NAS seems to be a little slower, and is unavailable when fstab runs on the Pi. Consequently DSLstats reverts to the default locations for Snapshots and DataStore.
Ideally I want the Pi to wait, and not try to mount the NAS until it is available, or run DSLstats until the NAS is mounted.
I have searched for answers on t'internet, but cannot find anything relevant to Raspbian Stretch. (Maybe I need to refine my searching skills!) Advice varies between using a bash script...python...systemd...cron...rc.local all of which are new to me, and some of which seem to contradict!
Can anyone help, or point me in the right direction? Thanks.