What's new

Shell script to restart minidlna

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

josh.zyman

Occasional Visitor
Hi,

I am looking for a way to restart minidlna using shell on my Asus RT-AC68U.
I noticed that minidlna has some options: start, stop, restart, reload, force-reload, status, but I am not able to call them.

I tried this line, but it doesn't work.
Code:
/usr/sbin/minidlna restart
[2014/01/31 22:39:42] minidlna.c:791: fatal: Unknown option: restart

Any ideeas?
 
The commands are like this

Code:
/usr/sbin/minidlna -f /path/to/minidlna.conf

or if you want to rebuild the database at start.

Code:
/usr/sbin/minidlna -R -f /path/to/minidlna.conf

These are the default paths

Code:
/tmp/etc/minidlna.conf
/var/cache/minidlna/files.db
/var/cache/minidlna/minidlna.log
/var/cache/minidlna/art_cache

The status page is at

Code:
http://192.168.1.1:8200/

or you can use this to parse the interesting bits on Tools>Run Cmd or putty.

Code:
wget -O - http://192.168.1.1:8200/ 2>/dev/null | grep -o "[A-Va-u]\{5\} [e-s]\{5\}: [0-9]\{1,\}"

Result

Code:
Audio files: 1
Video files: 2
Image files: 3
 
I tried and it does not work.

Code:
/tmp/mnt/Stocare# /usr/sbin/minidlna -R /etc/minidlna.conf
[2014/02/01 18:07:25] minidlna.c:791: fatal: Unknown option: /etc/minidlna.conf

the file is there and I am able to open it with nano and all seems OK, but it does not work.
 
I tried and it does not work.

Code:
/tmp/mnt/Stocare# /usr/sbin/minidlna -R /etc/minidlna.conf
[2014/02/01 18:07:25] minidlna.c:791: fatal: Unknown option: /etc/minidlna.conf

the file is there and I am able to open it with nano and all seems OK, but it does not work.

Check your command line, you forgot a "-f" argument in there versus what was mentioned in the previous message.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top