You are not logged in.
Good morning ladies and gents… I am a bit of a linux newbie and whilst in my sickbed I though I would get to grips with it.. well at least try..
I have recently installed Twonky Vision on my little server possibly not as the documentation describes, I basically unzipped the files on my PC copied them across to my Linux server /usr/twonk, changed a few listed files to allow execute and ran the following command to start the service
/usr/twonk/twonkymedia start
What I would like to do is to make or register this command as a daemon?
I have searched the interweb and forums but nt really knowing what the steps are I've drawn blank.
Reading the Twonky documentation the command needs to be run in full otherwise it will cause complications (not too sure what the complications are but that's the written word)
Thank you for reading this much… Thank you even more if you reply
Regards
Colin.
Offline
This should do:
ln -s /usr/twonk/twonkymedia /etc/rc.d/twonkymedia
sed -i -e '/^DAEMONS/ s/)$/ @twonkymedia&/' /etc/rc.conf #add to DAEMONS
Last edited by Ramses de Norre (2008-10-28 11:36:52)
Offline
Ramses thank you very much.. this works :-)
May I ask what these commands do?
Regard
Colin
Offline
The first creates a symbolic link from /etc/rc.d/twonkymedia to the executable, this is necessary because the arch initscripts look for daemons in /etc/rc.d only. The second is just a fancy way of telling you "add 'twonkymedia' to the end of the DAEMONS line in /etc/rc.d", and I trained my sed skills by writing it
Glad it worked
Offline