Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-16-2017, 08:30 AM   #1
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
LQ Guru
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
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.

1 members found this post helpful.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 PM.

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
Open Source Consulting | Domain Registration