Page 1 of 1

running two instances

Posted: Mon Jul 21, 2014 9:45 pm
by MoonKid
I am running Twonkymedia 7.2.7 on a QNAP NAS (TS 239 Pro II).

I want to have two instances of Twonky listen on different ports on that system.

The background of it is, that my wife and I don't want to mix our archives.

Re: running two instances

Posted: Mon Jul 21, 2014 10:38 pm
by phibertron
I used to have more on the topic on the other site,
These are the threads I dug up here on the topic

Twonky (How to run multiple instances with custom Navtree's)
http://twonkyforum.com/viewtopic.php?f=2&t=9408

Observations with multiple instances of Twonky Server 7
http://twonkyforum.com/viewtopic.php?f=2&t=11135

To be able to run multiple instances on your nas
your are going to have to be able ssh into it to make some changes to the startup script that launches twonky
.

Re: running two instances

Posted: Mon Jul 21, 2014 10:57 pm
by phibertron
only as an example, as your nas will be using something different,
when one looks at the twonky.sh, you will see this section in it

Code: Select all

      echo -n "Starting $TWONKYSRV ... "
      "$TWONKYSRV"
      rc_status -v
To make it run two instances, it would look like this

Code: Select all

      echo -n "Starting $TWONKYSRV ... "
      "$TWONKYSRV" -instance 0
      "$TWONKYSRV" -instance 1
      rc_status -v
You will also probably have to take into account the other things I mentioned, in the posts I linked to earlier
possibly such as "-appdata" and "-logfile" switches for each instance to different paths
but this is only needed if you are trying to do things more than just run multiple instances
like different nav trees and what not