Minidlna Persistence over Reboots ?

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Minidlna Persistence over Reboots ?

Post 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.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Minidlna Persistence over Reboots ?

Post by Lantis »

Thanks. I’ve submitted this change.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Minidlna Persistence over Reboots ?

Post 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.
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Lantis
Moderator
Posts: 6751
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Minidlna Persistence over Reboots ?

Post 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)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

foxyboy
Posts: 71
Joined: Tue Dec 22, 2015 10:23 am
Location: Ireland

Re: Minidlna Persistence over Reboots ?

Post 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'
Linksys WRT1200AC v1 Gargoyle 1.12
TP-Link Archer A7 v5 Gargoyle 1.13 PL

Post Reply