Well the START reorder appears to have done the trick
This seems to be the most straight forward fix so far.
If i find any issues with this in subsequent reboots i will update this thread.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Although i think it still makes sense to change the start order It appears to only work intermittantly !
I dont know why, it shouldnt make any difference but i have 2 usb drives (16gb -usbpowered/3tb -ac powered)
Anyhow, i have had to remediate by
killing minidlna process
unmounting usb
starting usb
restarting mindlna
Im going to implement a timedelay around the minidlna server and see if that is more robust.
From memory, the mount point is stored in the minidlna config? You can text for the presence of <mount_point>\.minidlna\.
Maybe do this every 5 seconds for a maximum of 12 repetitions (1 minute)
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
It is of sorts, the /etc/config/minidlna config file lists all media dirs that were specified. It takes the first one specified so i guess to be claner i should have put Movies and TVShows into a /Media folder.
So if i extract /tmp/usb_mount/UUID from this file thats what i check for around starting the minidlna service. The check should probably be for all unique mounts as you could be using 2 usb drives
list media_dir 'V,/tmp/usb_mount/A8262A88262A5798/Movies'
list media_dir 'V,/tmp/usb_mount/A8262A88262A5798/TVShows'
option db_dir '/tmp/usb_mount/A8262A88262A5798/Movies/.minidlna'
option log_dir '/tmp/usb_mount/A8262A88262A5798/Movies/.minidlna'
option enabled '1'