How to stop/start Twonky 6 / 7 in a bash-script
- schumaku
- Guru
- Posts: 43578
- 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
/etc/init.d/twonkymedia6.sh
-
- Starting out
- Posts: 39
- Joined: Tue Sep 25, 2012 8:04 am
Re: How to stop/start Twonky 6 / 7 in a bash-script
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.
So I needed to stop Twonky 7 first. Before I never tried to start Twonky 6 and 7 at the same time!
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] #
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
- schumaku
- Guru
- Posts: 43578
- 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
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.
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.
-
- Starting out
- Posts: 39
- Joined: Tue Sep 25, 2012 8:04 am
Re: How to stop/start Twonky 6 / 7 in a bash-script
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?
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?
- schumaku
- Guru
- Posts: 43578
- 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
No way to remove the firmware-integrated Twonky - just disable it.