Page 1 of 1

[Q]MiniDLNA autostart?

Posted: Wed Mar 06, 2013 8:11 pm
by Buffalo
Hello,
I am using gargoyle 1.59 on my wzr-hp-g300nh and I have a problem with minidlna starting at boot. I do not know much about linux but afaik init.d script does the startup thingy. Please help me. Thanks in advance!

EDIT (2013-03-08): I have found out that plugin-gargoyle-initd does the trick. But now I have another problem. The MiniDLNA server starts but it doesn't show any content until i restart it using Gargoyle GUI (System->Services). Could it be because of some priority settings?

Re: [Q]MiniDLNA autostart?

Posted: Sat Mar 23, 2013 2:56 pm
by apa64
I think we have encountered the same problem. The start scripts in the new minidlna package are designed for some kind of web configuration UI. See my post: http://www.gargoyle-router.com/phpbb/vi ... f=5&t=3859

Re: [Q]MiniDLNA autostart?

Posted: Thu Apr 16, 2015 9:05 am
by robbo
I know an old thread, but wondering if this is still a known problem. I am using 1.7.0 on a WNDR3800 and after reboot of the router I need to 'manually' through the web gui click to rescan files, otherwise there is no files in the dlna server. The server seems to start ok, but it loses its db, so needs to rescan. It wont initiate a rescan itself even if left for a few hours. Any ideas how to fix this, I moved to gargoyle about 3 mths back and it has been much more stable, loving it, only this is annoying me.

Re: [Q]MiniDLNA autostart?

Posted: Thu Apr 16, 2015 9:05 pm
by Lantis
Yep it's a problem. I think it's because minidlna starts BEFORE usb_storage.

Anyway, to save you the time of having to rescan, just execute the following:

Code: Select all

/etc/init.d/minidlna stop
kill -9 $(pidof minidlna)
/etc/init.d/minidlna start
This is the same as pressing Rescan with 1 key difference. A rescan wipes your old database. This just triggers it to look for it again.

If you've already hit rescan you'll have to wait for it to finish building the database first of course.

Re: [Q]MiniDLNA autostart?

Posted: Fri Apr 17, 2015 6:56 am
by robbo
Ok thanks Lantis. Well at least I know it's not just mine. Thanks for the workaround, but trying to show the wife how to use SSH and use those commands when I am away is just too tough, I'll try it, but leave the rescan and wait button to her. :D

If it is a startup sequence issue, hopefully that can be easily fixed by someone who knows what to change, and post a fix.

Re: [Q]MiniDLNA autostart?

Posted: Fri Apr 17, 2015 8:13 am
by Lantis
i know what to fix, but i can't push the fix to the main repository without Eric's approval.

The other idea i had was to add a 3rd button on that page called "Refresh Database" which would just run that sequence of commands.


To make it easier for your wife, maybe make a script file with those 3 commands, so that she only has to run 1 command?
Alternatively, install the webshell plugin, and enable remote SSH, and then you can fix it remotely for her :P

Re: [Q]MiniDLNA autostart?

Posted: Sat Apr 18, 2015 9:53 pm
by Eric
Lantis: It's true you can't push directly to the main repository... but send me a pull request on github! I merge pull requests from contributors all the time. Contributions are very, very welcome.

Re: [Q]MiniDLNA autostart?

Posted: Mon Apr 20, 2015 8:42 pm
by Lantis
Robbo do you feel like being a guinea pig for my fix? It seems to work fine for me, although I had a power outage which caused a bunch of problems so I wanted to check on another system first.
Let me know. I'm subscribed to this thread.