Page 2 of 2

Re: Minidlna Persistence over Reboots ?

Posted: Mon Sep 24, 2018 6:11 am
by foxyboy
Well the START reorder appears to have done the trick :D
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.

Re: Minidlna Persistence over Reboots ?

Posted: Mon Sep 24, 2018 10:07 am
by Lantis
Thanks. I’ve submitted this change.

Re: Minidlna Persistence over Reboots ?

Posted: Thu Sep 27, 2018 9:19 am
by foxyboy
Lantis,

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.

Re: Minidlna Persistence over Reboots ?

Posted: Thu Sep 27, 2018 9:26 am
by Lantis
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)

Re: Minidlna Persistence over Reboots ?

Posted: Fri Sep 28, 2018 6:37 am
by foxyboy
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'