Use it to translate older instructions that mention runlevels to systemd targets.
Runlevels
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).
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.
runlevel number → mapped to a systemd target → target units started
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
systemd-analyze— boot time per stagejournalctl -b -p err— errors in this bootjournalctl --list-boots— previous bootscat /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,singleor1boot into rescue mode, equivalent to rescue.target.emergencyboots into emergency mode.3is equivalent tosystemd.unit=multi-user.target, and5to graphical.target.
Runlevel to target mapping
| SysV runlevel | Traditional meaning | systemd target |
|---|---|---|
| 0 | Halt | poweroff.target |
| 1, S, single | Single user | rescue.target |
| 2, 3, 4 | Multi-user (distribution-specific) | multi-user.target |
| 5 | Multi-user with a graphical login | graphical.target |
| 6 | Reboot | reboot.target |
systemd provides runlevelN.target aliases for these.
Old commands and their replacements
| SysV command | systemd command |
|---|---|
runlevel | systemctl get-default, systemctl list-units --type=target |
init 3 / telinit 3 | systemctl isolate multi-user.target |
Default runlevel in /etc/inittab | systemctl set-default multi-user.target |
chkconfig <svc> on | systemctl enable <svc> |
service <svc> restart | systemctl 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.
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:
| Runlevel | systemd target |
|---|---|
| 0 | poweroff.target |
| 1 / S | rescue.target |
| 2, 3, 4 | multi-user.target |
| 5 | graphical.target |
| 6 | reboot.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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
Runlevels operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Runlevels.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin 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 chain | configured/default runlevel concept → init implementation/compat mapping → target/service set → dependency/start transaction → effective service state → workload availability | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Runlevel 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 evidence | Correlated 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 availability | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It 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 check | Continue 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 boundary | Runlevels |
|---|---|
| Topic path | Boot Process → Runlevels |
| Runtime state | 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. |
| 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 chain | configured/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 boundary | Runlevel 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 rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |