Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-04-2008, 02:14 AM   #1
Registered: May 2006
Location: Sydney
Distribution: Debian etch, SkoleLinux
Posts: 77

Rep: Reputation: 15
System V init sequence - networking

I need to find out where in the boot sequence networking is enabled (ifup)
and where iptables are configured.

Runevel S will always be entered at boot time,
followed by one of the other run levels e.g 1 for single user, 2 for standard services.

/etc# find . -name '*networking*'
Therefore networking is started with ./rcS.d/S40networking Right?

[Just curious: what is the reason for ./rc0.d/S35networking (halt)? ]

On my system all iptables policies are set to accept and no other rules exist.
Where is that done? I found no reference in the rc?.d directories.

Thank you
Old 12-04-2008, 07:57 PM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,684

Rep: Reputation: 124Reputation: 124
If you investigate a little further you'd see that these 'scripts' in the rc directory structure are really sym-links to /etc/init.d/ The sequence of the scripts the kernel goes through during boot is indicated by the S followed by a 2-digit number in its name. A script with an S10 prefix is executed before a script with S11 or higher. Same goes for scripts that shutdown the machine, but this time prefixed with K (kill) and again a 2-digit number. Again: the order in which the scripts are executed is determined by the number. General rule in Linux is that the numbers of the S and corresponding K script add up to exactly 100. That is: if you execute a boot script as S75 the K script should be prefixed with K25.

Hint/tip: read the O'Reilly book 'Running Linux'. Recommended!


debian, init, networking

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
/etc/init.d/networking restart (ERRORS) lrt Linux - Networking 13 03-10-2009 10:44 AM
Permissions on script sudo ln -s ../init.d/start-networking S90start-networking cnolasco Ubuntu 3 04-03-2007 08:27 AM
boot sequence system text - too big fonts.. captain skywave SUSE / openSUSE 2 06-24-2005 05:19 AM
System hangs,if gives init 3 or init 4 Sailaja Reddy Red Hat 1 09-20-2004 01:31 AM
Redhat linux9.0:System hangs,if gives init 3 or init 4 Sailaja Reddy Linux - Newbie 4 09-16-2004 03:19 AM

All times are GMT -5. The time now is 02:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration