07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

By default, Debian uses four different runlevels:<br />

• Level 0 is only used temporarily, while the computer is powering down. As such, it only<br />

contains many “K” scripts.<br />

• Level 1, also known as single-user mode, corresponds to the system in degraded mode; it<br />

includes only basic services, and is intended for maintenance operations where interactions<br />

with ordinary users are not desired.<br />

• Level 2 is the level for normal operation, which includes networking services, a graphical<br />

interface, user logins, etc.<br />

• Level 6 is similar to level 0, except that it is used during the shutdown phase that precedes<br />

a reboot.<br />

Other levels exist, especially 3 to 5. By default they are configured to operate the same way as<br />

level 2, but the administrator can modify them (by adding or deleting scripts in the corresponding<br />

/etc/rcX.d directories) to adapt them to particular needs.<br />

Figure 9.1<br />

Boot sequence of a computer running Linux<br />

All the scripts contained in the various /etc/rcX.d directories are really only symbolic links —<br />

created upon package installation by the update-rc.d program — pointing to the actual scripts<br />

Chapter 9 — Unix Services<br />

187

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!