LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack 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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a service as a system service Dakkar Suse/Novell 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


All times are GMT -5. The time now is 07:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration