Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Debian question
PostPosted: Fri Feb 13, 2004 6:28 am 
Offline
Senior Newbie

Joined: Fri Feb 13, 2004 6:16 am
Posts: 8
I am new to linux/debian. I am trying to figure out where during boot is the network configuration taking place.
From reading, I know that /etc/network/interfaces is the configuration file for ifup and ifdown and the changes I make are working but I can't seem to figure out when are these commands called during bootup.
Thanks,
Shahim


Top
   
 Post subject:
PostPosted: Fri Feb 13, 2004 10:11 am 
Offline
Junior Member
User avatar

Joined: Mon Jan 19, 2004 1:39 pm
Posts: 35
ICQ: 149459479
Website: http://www.cinetservices.com
WLM: blahrus@hotmail.com
Yahoo Messenger: blahrus
AOL: blahrus
Location: Bloomington, IL
what are you trying to change in the boot-up?


Top
   
 Post subject: Re: Debian question
PostPosted: Fri Feb 13, 2004 11:03 am 
Offline
Senior Member
User avatar

Joined: Sun Nov 23, 2003 1:40 pm
Posts: 79
Website: http://www.whitehouse.gov/history/presidents/bc42.html
shahim wrote:
I can't seem to figure out when are these commands called during bootup.

They are called in /etc/init.d/networking

Specifically line 124:
Code:
       echo -n "Configuring network interfaces: "
       ifup -a
       echo "done."

Bill Clinton


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 2:49 am 
Offline
Senior Newbie

Joined: Fri Feb 13, 2004 6:16 am
Posts: 8
Bill,

I don't have a link in rc2.d to /etc/init.d/networking. Does it get called from anywher else?

Shahim


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 3:18 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
By default in Debian, the network is started in runlevel 0.

Specifically, /etc/rc0.d/S35networking is a symlink to /etc/init.d/networking.


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 3:33 am 
Offline
Senior Newbie

Joined: Fri Feb 13, 2004 6:16 am
Posts: 8
Isn't run level 0 used to halt the system? I am new to linux and appreciate your answers.


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 3:41 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Other distributions may be different; I've really only had much experience with Gentoo and Debian.

My understanding is that when you boot up in runlevel 2 (or whatever) you've run all the lower runlevels in order. So on startup, all the files in rc0.d starting with S are run, then the ones in rc1.d, etc. When a runlevel is exited the K files are run in the reverse order.

If anybody knows this is wrong, please correct me, but AFAIK that's how Debian handles startup and shutdown.


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 3:50 am 
Offline
Senior Newbie

Joined: Fri Feb 13, 2004 6:16 am
Posts: 8
After some reading I think I found the answer.
First, inittab is ran, during that /etc/init.d/rcS is called.
rcS calls all the S scripts in /ect/rcS.d/ directory which does have a link to /etc/init.d/networking and some other links.

The other rc?.d directories are only called at their level.

link: http://www.debian.org/doc/debian-policy ... tml#s9.3.4

If I am wrong please correct me.


Top
   
 Post subject:
PostPosted: Sun Feb 15, 2004 4:04 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Great reference there. Should have checked for one myself first. Looks like your reading is spot on.

Thanks for the education!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group