PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Learning Debian - run level question?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Learning Debian - run level question?

Réponse
 
LinkBack Outils de la discussion
Vieux 16/11/2007, 14h20   #1
Randy Patterson - [Tech]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 16/11/2007, 15h50   #2
Sebastian Tennant
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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/
  Réponse avec citation
Vieux 16/11/2007, 16h50   #3
Douglas A. Tutty
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10696 seconds with 11 queries