FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-16-2007, 01:16 PM
"Randy Patterson - [Tech]"
 
Default Learning Debian - run level question?

Hey,

I've been using Debian/Linux for just less than year and have been
irreversibly hooked. I've been studying up on the boot and initialization of
the system and have a question about run levels. I know Debian defaults to
using run level 2. There is a comment in /etc/inittab that states;

# Runlevels 2-5 are multi-user.

When i look at how a process has been started (just for example apache).

debian:/home/me# sysv-rc-conf --list | grep apache
apache2 0ff 1ff 2n 3n 4n 5n 6ff

Sure enough, apache has been started on all run levels 2-5. So here's my
question. On a default Debian system are all run levels 2-5 setup exactly the
same making no difference to the run level you chose to run in?

Thanks,
Randy


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-16-2007, 02:40 PM
"Douglas A. Tutty"
 
Default Learning Debian - run level question?

On Fri, Nov 16, 2007 at 08:16:35AM -0600, Randy Patterson - [Tech] wrote:
> I've been using Debian/Linux for just less than year and have been
> irreversibly hooked. I've been studying up on the boot and initialization of
> the system and have a question about run levels. I know Debian defaults to
> using run level 2. There is a comment in /etc/inittab that states;
>
> # Runlevels 2-5 are multi-user.
>
> When i look at how a process has been started (just for example apache).
>
> debian:/home/me# sysv-rc-conf --list | grep apache
> apache2 0ff 1ff 2n 3n 4n 5n 6ff
>
> Sure enough, apache has been started on all run levels 2-5. So here's my
> question. On a default Debian system are all run levels 2-5 setup exactly the
> same making no difference to the run level you chose to run in?

Yes. Read debian policy (available as a package). Debian leave
run-level admin up to the administrator.

In case you're familiar with other unixes, another gotcha: Debian, like
other unixes, has what it calls single-user mode where only root can log
in. On other unixes, only the root filesystem is mounted (on some, only
in read-only mode). On debian, if you look at the scripts in
/etc/rcS.d followed by /etc/rc1.d, you'll see that single-user mode gets
you a fairly complete system with everything mounted, assuming that
there aren't boot problems to begin with. However, if there aren't boot
problems, why would you run single-user mode?

So if you ever want a real unix single-user mode, the only way to get
close in Debian is to use init=/bin/sh on the kernel command line so
that init doesn't run and inittab doesn't come into effect.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-16-2007, 02:41 PM
Sebastian Tennant
 
Default Learning Debian - run level question?

Quoth "Randy Patterson - [Tech]" <tech@patterson-pcc.com>:
> On a default Debian system are all run levels 2-5 setup exactly the
> same making no difference to the run level you chose to run in?

Yes, pretty much, if not _exactly_ the same.

Simply compare the contents of:

/etc/rc2.d/
.
.
/etc/rc5.d/

to be sure.

Sebastian


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 02:23 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org