I have this, but I don't think it works very well:
I get a message that is already running. Also, when I do a ps -aux | grep dlana, I get this:
What I would ordinarily get, if I did not run the script is just:
dlna is the friendly name I gave it . Maybe, before I try to start the service back up, I should stop it again?
#!/bin/sh
# Stop the service
/usr/sbin/service minidlna stop
# Force a rescan of existing files (use -R instead of -r for a full rebuild)
/usr/local/sbin/minidlnad -r -f /usr/local/etc/minidlna.conf
# Start the service back up
/usr/sbin/service minidlna start
I get a message that is already running. Also, when I do a ps -aux | grep dlana, I get this:
/usr/local/sbin/minidlnad -r -f /usr/local/etc/minidlna.conf
What I would ordinarily get, if I did not run the script is just:
$ ps -aux | grep dlna
dlna 2922 0.0 0.3 146508 30824 - INs 15:28 0:00.02 /usr/loca
dlna is the friendly name I gave it . Maybe, before I try to start the service back up, I should stop it again?