You are not logged in.

#1 2008-10-28 11:08:06

colinhart
Member
Registered: 2008-10-24
Posts: 2

Adding / creating a new Daemon to the system?

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 big_smile

Regards

Colin.

Offline

#2 2008-10-28 11:34:07

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Adding / creating a new Daemon to the system?

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

#3 2008-10-28 11:46:40

colinhart
Member
Registered: 2008-10-24
Posts: 2

Re: Adding / creating a new Daemon to the system?

Ramses thank you very much.. this works :-)
May I ask what these commands do?

Regard

Colin

Offline

#4 2008-10-28 11:49:15

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Adding / creating a new Daemon to the system?

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 wink

Glad it worked smile

Offline

Board footer

Powered by FluxBB