Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Runlevels

Direct answer

Runlevels are the SysV-init way of describing system states (0 halt, 1 single-user, 3 multi-user, 5 graphical, 6 reboot). systemd maps them to targets (runlevel3.target = multi-user.target).

When to use this

Use it to translate older instructions that mention runlevels to systemd targets.

First 30 seconds

1. runlevel — previous and current equivalent.

2. systemctl get-default — boot target.

3. Old "init 1" → systemctl isolate rescue.target.

4. Old "init 3" → systemctl isolate multi-user.target.

5. Set permanently with systemctl set-default.

Operational verification

runlevel number → mapped to a systemd target → target units started

Evidence · next step

For Boot Process → Runlevels, continue with the first unproven Topic check: Identify init system and distribution-specific runlevel semantics before interpreting 0–6 or S/single-user states. If that boundary is healthy, advance to the adjacent check: Map any runlevel reference to the corresponding systemd target or SysV configuration actually controlling the host. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it to translate older instructions that mention runlevels to systemd targets.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

configured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availability

Healthy evidence: the documented runlevel/target mapping matches the actual init system and the resulting service set plus workload behavior matches the intended operating state.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify init system and distribution-specific runlevel semantics before interpreting 0–6 or S/single-user states.

  • Map any runlevel reference to the corresponding systemd target or SysV configuration actually controlling the host.
  • Inspect which services/units are wanted and which failed rather than inferring state from the numeric level alone.
  • Verify the intended runtime state and workload after a transition, and separately verify persistent default boot state if changed.

Verification chain. configured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availability

Step 3 Commands Verify boundary
runlevel
systemctl get-default
systemctl isolate multi-user.target
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: an operator treats a legacy runlevel number as universal truth while systemd dependencies, failed units or distro-specific mappings produce a different effective state.

Step 5 Common mistakes Narrow the fault
  • Using SysV runlevel commands on systemd systems without knowing the mapping.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Use targets on modern systems: systemctl isolate multi-user.target instead of init 3, systemctl set-default instead of editing /etc/inittab. runlevel still reports the equivalent.

Key checks
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used
ReferenceWhat it is1 section · depth on demand

Core model

Do not assume runlevel numbers are the active native control plane. Determine whether the system is SysV-init, systemd with compatibility mappings, or another init; then map the requested state to the actual target/service transaction. Use runlevels as historical/compatibility vocabulary where appropriate, not as evidence of modern unit readiness.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Runlevel evidence only describes an intended/compatibility operating state, but it does not show each service or the original workload is healthy.

In depth

Runlevels and their systemd counterparts

SysV init used numbered runlevels to describe the system state, and switched between them with init N or telinit N. systemd replaces runlevels with targets, but keeps compatibility. The systemd(1) manual page lists the kernel command-line shortcuts:

  • rescue, single or 1 boot into rescue mode, equivalent to rescue.target.
  • emergency boots into emergency mode.
  • 3 is equivalent to systemd.unit=multi-user.target, and 5 to graphical.target.

Runlevel to target mapping

SysV runlevelTraditional meaningsystemd target
0Haltpoweroff.target
1, S, singleSingle userrescue.target
2, 3, 4Multi-user (distribution-specific)multi-user.target
5Multi-user with a graphical logingraphical.target
6Rebootreboot.target

systemd provides runlevelN.target aliases for these.

Old commands and their replacements

SysV commandsystemd command
runlevelsystemctl get-default, systemctl list-units --type=target
init 3 / telinit 3systemctl isolate multi-user.target
Default runlevel in /etc/inittabsystemctl set-default multi-user.target
chkconfig <svc> onsystemctl enable <svc>
service <svc> restartsystemctl restart <svc> (the service wrapper still works)
host$ runlevel
N 5
host$ systemctl get-default
graphical.target
host$ ls -l /usr/lib/systemd/system/runlevel3.target
lrwxrwxrwx 1 root root 17 Oct 30 10:21 /usr/lib/systemd/system/runlevel3.target -> multi-user.target
host$ sudo systemctl set-default multi-user.target
Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/multi-user.target.
host$ sudo systemctl isolate multi-user.target

Why multi-user.target on servers

Servers rarely need a graphical login. Setting multi-user.target as the default avoids starting the display manager and the desktop stack. isolate switches immediately, but also stops everything not wanted by the new target, so run it from a console you won't lose.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Runlevels is part of Boot Process → Runlevels. Runlevels covers the traditional SysV numeric operating-state model and its mapping/compatibility relationship with modern systemd targets on Linux distributions that expose runlevel concepts.

Topic-specific state model. Runlevels covers the traditional SysV numeric operating-state model and its mapping/compatibility relationship with modern systemd targets on Linux distributions that expose runlevel concepts.

Interpretation rule. - Runlevel number ≠ identical service set across all distributions.

  • systemd runlevel compatibility target ≠ SysV scripts are the authoritative dependency model.
  • Reported runlevel ≠ every service expected by an operator is healthy.
  • Changing default target/runlevel ≠ current runtime state changes until the appropriate transition or reboot occurs.

Quick reference

Runlevels are SysV-era states mapped to systemd targets for compatibility:

Runlevelsystemd target
0poweroff.target
1 / Srescue.target
2, 3, 4multi-user.target
5graphical.target
6reboot.target
runlevel; who -r
init 3                     # works via compatibility, prefer systemctl isolate
ls -l /usr/lib/systemd/system/runlevel*.target

Old init scripts in /etc/init.d are wrapped by systemd-sysv-generator; convert them to native units for proper dependency handling.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Runlevel evidence only describes an intended/compatibility operating state, but it does not show each service or the original workload is healthy.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Runlevels owns legacy SysV state semantics and compatibility mapping. Targets owns modern systemd grouping; systemd Boot owns target convergence; systemd & Services owns unit lifecycle.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Boot Process → Runlevels. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://systemd.io/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux runlevelssysv runlevelrunlevel systemd targetlinux init levels
Embedded reference data

Quick lookup tables

Runlevels operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Runlevels.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateRunlevels covers the traditional SysV numeric operating-state model and its mapping/compatibility relationship with modern systemd targets on Linux distributions that expose runlevel concepts.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact host + failed boot attempt → identify firmware mode/boot entry → capture bootloader entry + kernel/initramfs + command line → prove root-device discovery and early-userspace handoff → inspect PID 1 transaction/target → change one demonstrated cause → reboot through original path → verify service/workload readiness and regression.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainconfigured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availabilityTrace requested/configured state through effective state to the observed workload result.
Failure boundaryRunlevel evidence only describes an intended/compatibility operating state; it does not prove each service or the original workload is healthy.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux boot evidence can establish this proof path: configured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availabilityUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. Runlevel evidence only describes an intended/compatibility operating state; it does not prove each service or the original workload is healthy.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Runlevels · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryRunlevels
Topic pathBoot Process → Runlevels
Runtime stateRunlevels covers the traditional SysV numeric operating-state model and its mapping/compatibility relationship with modern systemd targets on Linux distributions that expose runlevel concepts.
Fast checks- Identify init system and distribution-specific runlevel semantics before interpreting 0–6 or S/single-user states. - Map any runlevel reference to the corresponding systemd target or SysV configuration actually controlling the host. - Inspect which services/units are wanted and which failed rather than inferring state from the numeric level alone. - Verify the intended runtime state and workload after a transition, and separately verify persistent default boot state if changed.
Verification chainconfigured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availability Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryRunlevel evidence only describes an intended/compatibility operating state; it does not prove each service or the original workload is healthy. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?