LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-16-2017, 08:30 AM   #1
new_user3085
LQ Newbie
 
Registered: Sep 2016
Posts: 21

Rep: Reputation: Disabled
where does a subsystem in linux gets it's number from


Hello All,

I'm trying to understand how are the numbers assigned to the services/subsystems under /etc/init.d/rcN.d in Linux (or any OS). Where do the services get the numbering from. I tried google but couldn't find closely related info. Thanks in advance.

lrwxrwxrwx 1 root root 18 Jan 14 11:59 K92firewall -> ../init.d/firewall
lrwxrwxrwx 1 root root 17 Jan 14 11:59 S10network -> ../init.d/network
lrwxrwxrwx 1 root root 16 Jan 14 11:59 S12syslog -> ../init.d/syslog
lrwxrwxrwx 1 root root 18 Jan 14 11:59 S17keytable -> ../init.d/keytable
lrwxrwxrwx 1 root root 20 Jan 14 11:59 S56rawdevices -> ../init.d/rawdevices
lrwxrwxrwx 1 root root 16 Jan 14 11:59 S56xinetd -> ../init.d/xinetd
lrwxrwxrwx 1 root root 18 Jan 14 11:59 S75httpd -> ../init.d/httpd
lrwxrwxrwx 1 root root 11 Jan 13 21:45 S99local -> ../rc.local
 
Old 11-16-2017, 08:36 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
Each startup script contains dependencies. I.e. services which must be running before a certain new service can start. These dependencies are mentioned in the script header.

The startup sequence is derived from the dependencies by the insserv utility. When a script is linked in a rcX.d directory by update-rc.d, this program queries the insserv start/stop dependencies and assigns the correct Snn or Knn to the symlink.

jlinkels
 
1 members found this post helpful.
  


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
struct input_event + Linux Input Subsystem sushiee Linux - Newbie 0 05-18-2011 05:47 AM
Identify and explain the major number, minor number, and revision number in Linux... turbomen Linux - Newbie 1 11-16-2010 02:48 AM
About linux subsystem architectures turboscrew Linux - Newbie 3 05-31-2010 10:57 AM
About the Linux Audit Subsystem asram Red Hat 2 05-31-2010 04:08 AM
LXer: Linux: Kernel Graphics Subsystem LXer Syndicated Linux News 0 05-21-2007 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:43 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
Open Source Consulting | Domain Registration