How to stop/start Twonky 6 / 7 in a bash-script

DLNA, AirPlay, Chromecast, PS3, XBOX, iTunes, & other media players
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to stop/start Twonky 6 / 7 in a bash-script

Post by schumaku »

/etc/init.d/twonkymedia6.sh
crystalball
Starting out
Posts: 39
Joined: Tue Sep 25, 2012 8:04 am

Re: How to stop/start Twonky 6 / 7 in a bash-script

Post by crystalball »

I am running TwonkyServer Premium 7.0.9 at the moment. IMHO I have to use twonkymedia.sh and not twonkymedia6.sh (-> /share/HDA_DATA/.qpkg/TwonkyMedia/twonkymedia6.sh*)

But ok, I try to start Twonky 6.

Code: Select all

ps -ef | grep onky                            
18969 admin       412 S   /share/HDA_DATA/.qpkg/TwonkyMedia/twonkystarter -inifile /etc/config/twonkyvision-mediaserver6.ini 
18970 admin     91084 S   /share/HDA_DATA/.qpkg/TwonkyMedia/twonkyserver -inifile /etc/config/twonkyvision-mediaserver6.ini -
20363 admin       568 S   grep onky 

Code: Select all

[/etc/init.d] # /etc/init.d/twonkymedia6.sh start
Twonky server seems already be running under PID 18969
(PID file /tmp/mediaserver.pid already exists). Checking for process...
Process IS running. Not started again.
[/etc/init.d] # 
[/etc/init.d] # /etc/init.d/twonkymedia.sh stop  
Shutting down UPnP MediaServer services: twonkymedia.kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

[/etc/init.d] # 
[/etc/init.d] # /etc/init.d/twonkymedia6.sh start
Starting UPnP MediaServer: (/share/HDA_DATA/.qpkg/TwonkyMedia/twonkystarter) 
[/etc/init.d] # 
[/etc/init.d] # ps -ef | grep onky               
20507 admin       400 S   /share/HDA_DATA/.qpkg/TwonkyMedia/twonkystarter -inifile /etc/config/twonkyvision-mediaserver6.ini 
20508 admin      4640 S   /share/HDA_DATA/.qpkg/TwonkyMedia/twonkyserver -inifile /etc/config/twonkyvision-mediaserver6.ini -
20566 admin       568 R   grep onky 
[/etc/init.d] # 
So I needed to stop Twonky 7 first. Before I never tried to start Twonky 6 and 7 at the same time!

Code: Select all

[/etc/init.d] # /etc/init.d/twonkymedia6.sh stop 
Shutting down UPnP MediaServer services: twonkymedia.
[/etc/init.d] # 
[/etc/init.d] # 
[/etc/init.d] # /etc/init.d/twonkymedia6.sh start
Starting UPnP MediaServer: (/share/HDA_DATA/.qpkg/TwonkyMedia/twonkystarter) 
[/etc/init.d] # 
[/etc/init.d] # 
[/etc/init.d] # /etc/init.d/twonkymedia.sh stop  
Shutting down UPnP MediaServer services: twonkymedia.kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

[/etc/init.d] # /etc/init.d/twonkymedia.sh start
UPnP MediaServer is disabled. If the process still existed, try to run "/etc/init.d/twonkymedia.sh stop"
[/etc/init.d] # ps -ef | grep onky               
20782 admin       568 R   grep onky
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to stop/start Twonky 6 / 7 in a bash-script

Post by schumaku »

For both QPKG installed Twonky veriosn 6 _and_ 7, it's the same script _with_ the 6.

At the same time, only _one_ Twonky QPKG can be installed - so either Twonky 6 or Twonky 7. Thee is no way of changing versions by launchhing a different scriot.

Last reminder: twonkymedia.shs is _only_ for the firmware-integrated Twonky - it's running in a diffeent root, that's why ie. the PID file can't be found.
crystalball
Starting out
Posts: 39
Joined: Tue Sep 25, 2012 8:04 am

Re: How to stop/start Twonky 6 / 7 in a bash-script

Post by crystalball »

Thanks, so no we are coming closer to my problem. How do I remove Version 6? It is available after the QNAP-Setup. I see only a checkbox with "Enable DLNA Media Server" I am a not aware what "firmware-integrated Twonky" means. I have a TS-119 PII and never installed Twonky by downloading myself from the Twonky-Homepage. I download Twonky 7 via the QNAP-Administration Homepage, Twonky 6 was available from the beginning.

The last situation was, that I could stop/start Version 6, but not 7. So is Twonky 7 integrated into the firmware? How should I know what is integrated into the firmware?
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: How to stop/start Twonky 6 / 7 in a bash-script

Post by schumaku »

No way to remove the firmware-integrated Twonky - just disable it.
Post Reply

Return to “Media Streaming”