Linode Forum
https://forum.linode.com/

Debian question
https://forum.linode.com/viewtopic.php?f=19&t=675
Page 1 of 1

Author:  shahim [ Fri Feb 13, 2004 6:28 am ]
Post subject:  Debian question

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

Author:  blahrus [ Fri Feb 13, 2004 10:11 am ]
Post subject: 

what are you trying to change in the boot-up?

Author:  Bill Clinton [ Fri Feb 13, 2004 11:03 am ]
Post subject:  Re: Debian question

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

Author:  shahim [ Sun Feb 15, 2004 2:49 am ]
Post subject: 

Bill,

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

Shahim

Author:  Xan [ Sun Feb 15, 2004 3:18 am ]
Post subject: 

By default in Debian, the network is started in runlevel 0.

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

Author:  shahim [ Sun Feb 15, 2004 3:33 am ]
Post subject: 

Isn't run level 0 used to halt the system? I am new to linux and appreciate your answers.

Author:  Xan [ Sun Feb 15, 2004 3:41 am ]
Post subject: 

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.

Author:  shahim [ Sun Feb 15, 2004 3:50 am ]
Post subject: 

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.

Author:  Xan [ Sun Feb 15, 2004 4:04 am ]
Post subject: 

Great reference there. Should have checked for one myself first. Looks like your reading is spot on.

Thanks for the education!

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/