Run Levels Flashcards

(22 cards)

1
Q

Runlevel 0

A

Halt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Runlevel S

A

Single-user mode (US keyboard layout)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Runlevel 1

A

Single-user mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Runlevel 2

A

Multiuser mode without network server services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Runlevel 3

A

Multiuser mode with network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Runlevel 4

A

Not used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Runlevel 5

A

Multiuser mode with network and display manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Runlevel 6

A

Reboot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To display the current runlevel

A

runlevel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The config file for init is

A

/etc/inittab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

the scripts started by init are located at

A

/etc/init.d/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The default runlevel is normally

A

3 or 5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The services that are started in a certain runlevel are defined in:

A

/etc/init.d/rcx.d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The _________ directory contains shell scripts that are used to perform certain tasks at boot up

A

/etc/init.d/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

the init.d script paramaters are:

A

start, restart, stop, reload, force-reload, & status.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does /etc/init.d/boot do?

A

it is started directly by init when the system starts. It is run only once. it starts all the skripts linked by filenames with an ā€œSā€ at the beginning of their names.

17
Q

What does /etc/init.d/boot.local do?

A

Includes additional commands to be executed at boot before changing into a runlevel.

18
Q

What does /etc/init.d/halt do?

A

Run if runlevels 0 or 6 are entered. it is called with either the halt command or the reboot command.

19
Q

What does /etc/init.d/rc do?

A

This script changes from one runlevel to another. It runs the stop scripts for the current runlevel and then runs the start scripts for the new runlevel.

20
Q

What does /etc/init.d/service do? (Service is generic)

A

Each service on your linux system comes with a script that allows you to star or stop the service, to reload its configuration, or to view its status.

21
Q

To add a service with insserv:

A

insserv service,start=x (service is name of service, x is runlevel)

22
Q

To remove a service with insserv:

A

insserv -r service