LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I make something a system service? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-make-something-a-system-service-306009/)

sloik2000 03-25-2005 02:21 PM

How do I make something a system service?
 
Hey guys,
I need to make a system service of my own. I would like to know how...
The program I am trying to make a service is the Tribes 2 dedicated server, which runs in the terminal. How would I go about making this a system service?
Thanks for the help, and Happy Easter!

-Sloik

saravkrish 03-25-2005 02:26 PM

Hi,

Just make a script (say tribes2) that takes as argument the following:

start
stop
status
restart
lock

AFAIK lock and restart are optional. Then put the script in /etc/init.d/.

Thats about it.

-Sarav

sloik2000 03-25-2005 03:13 PM

Thanks!
 
Thanks for the help!

saravkrish 03-25-2005 03:16 PM

Btw, that just for making a service. Doesn't automatically start it. You will have to use chkconfig for that. I use the GUI provided in FC3 for this, so dont ask me about chkconfig (it's easy though).

-Sarav


All times are GMT -5. The time now is 09:06 AM.