Configuring what services start at boot time

From MEPIS Documentation Wiki

(Redirected from Runlevels)
Jump to: navigation, search

Introduction

A runlevel is a group of activities, bound together by a numbered runlevel. Each runlevel corresponds to links in the directories /etc/rc.d/rc#.d/ where # is a number from 0 to 6. These directories contain a series of scripts to start specific processes which may be more or less than other runlevels. This allows the system to have a set of very distinct operating environments – in contrast to the common legacy OS with its simple pair of safe and normal modes.

Runlevel editors

  • GUI for editing the runlevels: install KSysV with apt-get:
apt-get install ksysv
  • Terminal utility:
apt-get install sysv-rc-conf

Or use update-rc.d directly:

update-rc.d servicename remove
         -- or --
update-rc.d servicename defaults

For more info about update-rc.d type: "man update-rc.d"

Additional info about Linux runlevels

Mepis boots up by executing the program init. After completing the boot process, init executes all start scripts in a directory specified by the default runlevel (this runlevel is given by the entry for id in /etc/inittab). Like most System V compatible Unices, Linux has 7 runlevels:

RulevelDescription
0Halt (power down)
1Single-user mode: provides a root console without logon. Useful if you lose your root password
2Multiuser with no network
3Console logon, no X (i.e. no GUI)
4Not used/custom
5Default GUI logon
6Reboot

You can boot to a runlevel by adding its number at the end of the cheatcodes at the bottom of the GRUB screen. MEPIS defaults to runlevel 5, therefore all the script setup in level 5 will run at boot.


See also Starting/Stopping a service.

Personal tools
In other languages