LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-04-2008, 02:14 AM   #1
ernst
Member
 
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.

Hypothesis:
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.

Quote:
/etc# find . -name '*networking*'
./rc6.d/S35networking
./init.d/networking
./rc0.d/S35networking
./rcS.d/S40networking
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,686

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/networking.sh 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!
 
  


Reply

Tags
debian, init, networking



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:04 AM.

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