two instances: second block the first one
Brought to you by:
jmaggard
I tried to have two instances off minidlna on Debian unstable (minidlna 1.1.6).
After install minidlna with apt-get I stoped the service/daemon with service minidlna stop.
After that I started my two instances manually
sudo minidlna -u minidlna -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid
sudo minidlna -u minidlna -f /etc/minidlna2.conf -P /run/minidlna/minidlna2.pid
After starting the first one it appears on all my UPnP-clients.
After starting the second one, the first one disapears and the second one appears. But the instances themselfs are still running (ps -A | grep mini).
Please see the conf-files and log-files attached.
The problem is fixed.
Per default minidlna set the UUID (what is the UPnP UUID) to the MAC address. Two instances with the same UUID on the same machine can't work of course.
There is a need to set "UUID" in minidlna.conf explicite to another value. Then it works fine.
My own bug-report on Debian about missunderstandings in the manpage and config-file comments brought that up to the light. ;) Because of that the manpage was fixed. See: https://anonscm.debian.org/cgit/collab-maint/minidlna.git/commit/?id=afa85dc8e23aeb062c8977d5c80c02cefdb0c874
Please close that bug.