LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-20-2008, 11:50 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
startup process


In my linux system , there are many boot up process are added in /etc/rc.d/init.d , I know all these process will be run when server boot up , some process name begins with S, I would like to ask what is the mean of S1 , S2 , S3... ? is boot sequence ? this kind of process will run after or before the o/s started ?

thx
 
Old 11-20-2008, 12:19 PM   #2
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
Quote:
Originally Posted by ust View Post
In my linux system , there are many boot up process are added in /etc/rc.d/init.d , I know all these process will be run when server boot up , some process name begins with S, I would like to ask what is the mean of S1 , S2 , S3... ? is boot sequence ? this kind of process will run after or before the o/s started ?

thx

S=startup
K=that runs when you shutdown machine.

numbers are the sequence they run in.
 
Old 11-20-2008, 01:21 PM   #3
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 10, Linux Mint 11
Posts: 148

Rep: Reputation: 18
It should also be noted that only the capital letters are run. If you have an s99ftpd file to kick off an ftp daemon, it is not going to work until you change that to S99ftpd.
 
Old 11-20-2008, 01:36 PM   #4
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
/etc/rc.d/init.d contains all of the scripts to control all services. Any of them accept a start/stop/restart argument. Now, you have /etc/rc.d/rc1.d,rc2.d, and so on. These correspond to the various runlevels. For example, rc3.d is for text mode console, and rc5.d is x windows. In each of the rcn.d directories are a bunch of symlinks to scipts in init.d. They all begin with S or K (start or kill aka stop). They are arranged in order by the numbers following S or K. Here's the clever bit, the scripts in init.d are aware of the name (symlink) by which they are invoked.(In fact it is possible for any linux command to be coded for this capability, it is inherent in the system.) So when the system enters runlevel 3, it calls the links in rc3.d in order, and the ones starting with S invoke the relevant init.d script with a start argument. When leaving runlevel 3, the K links are called with a stop argument.
Kind of neat, huh?

Last edited by kevinalm; 11-20-2008 at 01:38 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding the startup process swethas Linux - Kernel 4 11-06-2006 04:10 AM
Changing Startup Process jroggow Slackware 2 10-10-2006 03:11 PM
Configuring the startup process thephotoman Debian 5 10-01-2004 11:20 PM
startup process thongor Slackware 2 03-21-2004 11:23 AM
running a process at startup jmu Linux - Newbie 5 02-11-2003 06:52 PM


All times are GMT -5. The time now is 01:30 PM.

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