#63 Multi instance patch (updated)


This is an updated version of Jeff Aylesworth's multi-instance patch for MiniDLNA based on latest head. It has the following features:
-u <uuid> command line option: allows setting of all or part of the UUID on the command line (partial UUID is overlaid on the default from the first character'
-u auto has special behaviour: The 17th through 22nd byte values of the UUID are replaced with the hex encoded process ID of the MiniDLNA process. This allows multiple instances to be started without manually specifying a different UUID each time.
A 'uuid' directive in the minidlna.conf file supports the same behaviour as the command line switch, i.e, You can set 'uuid=1a2b3c' in minidlna.conf to replace the first 6 characters of the default UUID with 1a2b3c. You can also set 'uuid=auto' in minidlna.conf to embed the process ID of minidlna in the UUID.


  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here

    Anonymous - 2012-06-27

    I tested this with 1.0.24 and it works fine. Please integrate into next version.

  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here

    Anonymous - 2012-08-12

    Even though minidlna.c and minidlna.conf of version 1.0.25 can be patched because neither of them underwent any changes since 1.0.24 this doesn't work.
    I'm always left with only the first instance I started.

    I used the following commands:
    minidlna -f /etc/minidlna.conf -u 1ab23 --> first instance
    minidlna -f /etc/minidlna-kid.conf -u 2bd34 ---> second instance

    Please advise.

    Last edit: Anonymous 2014-04-11
  • Krishna Visweswaran

    Can you verify that you applied the patch to the source, that the patch applied successfully and that the compilation was successful?
    Can you also double-check that you are in fact invoking the patched version of the executable and not another existing version? (I notice you are not specifying a path for minidlna in your command lines.)
    Also can you list the UUID that MiniDLNA runs under for each invocation below?

  • alain1980

    alain1980 - 2013-09-13

    Hi, i was hoping that multiple instances meant being able to run multiple upnp servers with different databases (and shared media) on my wrt router (running tomatousb with optware).

    i compiled the 1.1.0 version and can effectively start multiple instances (specifying different pid files, ports, conf files, db files, log files, friendly names and uuid).

    However, uuid = auto doesn't work
    and i've tried many upnp clients, and they only see one of the instances (not always the same !)

    I can run mediatomb and minidlna on the same wrt device, no problem...

    have i missed anything here ??? please help if you can... and tell me if you cannot !


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks