LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2005, 02:21 PM   #1
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Rep: Reputation: 15
Post 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
 
Old 03-25-2005, 02:26 PM   #2
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Rep: Reputation: 30
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
 
Old 03-25-2005, 03:13 PM   #3
sloik2000
Member
 
Registered: Jan 2004
Location: Lake Bluff, IL
Distribution: Fedora 8
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks!

Thanks for the help!
 
Old 03-25-2005, 03:16 PM   #4
saravkrish
Member
 
Registered: Mar 2004
Location: KY, USA
Distribution: Fedora Core 1
Posts: 190

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a service as a system service Dakkar SUSE / openSUSE 2 07-13-2005 07:36 AM
How to make service always start? Arodef Linux - Software 4 01-05-2005 06:25 PM
Trying to make my sshd service to work. Help please! babyboss Linux - Distributions 3 10-28-2004 09:09 PM
'make' and 'make install' commands dont work on my system? ginda Linux - Newbie 9 04-18-2004 11:17 AM
Add a new system service tmelo49 Linux - Newbie 3 04-23-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration