Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-18-2003, 02:36 PM   #1
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Rep: Reputation: 15
starting a service under RH9

I have a service that I start manually by typing

/etc/init.d/service start

I would like this to be automatic when I boot. How do I do this?


Red Hat 9
Old 12-18-2003, 02:47 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
chkconfig service on
Old 12-18-2003, 02:52 PM   #3
Registered: Nov 2000
Location: Ware (Nr London, England
Posts: 114

Rep: Reputation: 15
Hi there,

Redhat starts processes that it finds in /etc/rc[runlevel].d

For example if you are using run level 5 (graphical startup) you would use /etc/rc5.d

In this directory are a set of links to startup scripts in /etc/init.d. The name of the link is important. The first letter is K or S for Kill or Start. The next number is the order that the processes are started.

For example /etc/rc5.d/S99somecustomservice would be linked to /etc/init.d/somecustomservice

Hope this helps

Old 12-18-2003, 02:52 PM   #4
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Or, put it in /etc/rc.d/rc.local. That file is the last script run on boot-up.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to prevent a service from starting phonecian Linux - Software 2 10-06-2005 11:57 AM
starting this as a service. dkc_ace Linux - General 15 12-27-2004 10:31 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 07:39 PM
starting one service before the other in Rh jayakrishnan Linux - General 2 11-19-2003 01:32 AM
starting up a service Robin01 Linux - Newbie 3 08-31-2003 06:04 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 AM.

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