Use it to change what a system boots into or to boot into a repair target.
Targets · Boot Process
Boot targets decide what the system starts at boot: multi-user.target for servers, graphical.target for desktops, rescue.target and emergency.target for repair.
1. systemctl get-default.
2. Change: systemctl set-default multi-user.target.
3. Repair boot: add systemd.unit=rescue.target at the GRUB menu.
4. systemctl list-dependencies <target> — what it starts.
5. Reboot and confirm.
default target set → reached at boot → units wanted by it started
For Boot Process → Targets, continue with the first unproven Topic check: Identify default target and actual boot target, including aliases such as graphical.target or multi-user.target. If that boundary is healthy, advance to the adjacent check: Inspect Wants/Requires/After/Before relationships and failed jobs that affect the target's intended service set. 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
default/selected target → dependency/wants graph → systemd jobs/order → constituent units → target active state → service readiness → workload outcome
Healthy evidence: the intended target is selected, its required dependency transaction succeeds and the required services/workload are independently verified ready.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Identify default target and actual boot target, including aliases such as graphical.target or multi-user.target.
- Inspect Wants/Requires/After/Before relationships and failed jobs that affect the target's intended service set.
- Use target state only as a milestone; separately test required services, mounts, network and workload readiness.
- After changing default or isolating a target, verify both effective runtime state and behavior after a clean reboot.
Verification chain. default/selected target → dependency/wants graph → systemd jobs/order → constituent units → target active state → service readiness → workload outcome
Step 3 Commands Verify boundary
systemctl list-units --type=target
systemctl set-default multi-user.target
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: the target is active while failed optional/required dependencies or unready services leave the host only partially usable.
Step 5 Common mistakes Narrow the fault
- Setting graphical target on servers.
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.
Set the default with systemctl set-default <target>; switch now with systemctl isolate <target>; boot once into a target with systemd.unit=<target> on the kernel command line.
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
Treat a target as dependency aggregation and synchronization, not a health check. Identify the default target and isolate/wants/requires relationships that build the boot transaction; then inspect failed dependencies and verify the services/workload that matter. Reaching multi-user.target shows a transaction milestone, not application readiness.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Target evidence ends at dependency transaction/milestone state; workload readiness and correctness require direct verification of the services and dependencies the user actually needs.
In depth
Choosing and changing the boot target
The boot target decides how far the system starts: a full graphical desktop, a server without a graphical login, or a recovery shell. The systemd.special(7) manual page describes the rules:
- default.target is the unit systemd starts at boot, usually an alias for multi-user.target or graphical.target.
- If default.target is missing, the compiled-in default (graphical.target) is used.
- If it fails, systemd starts rescue.target instead.
systemctl get-default reports where default.target points, and set-default changes the link.
Ways to select a target
| Method | Scope |
|---|---|
systemctl set-default <target> | Permanent: changes the default.target link |
systemd.unit=<target> on the kernel command line | One boot |
systemctl isolate <target> | Now: switch the running system (stops other units) |
systemctl start <target> | Now: start the target's units without stopping others |
Isolate with care
isolate stops everything the target doesn't want, unless a unit has IgnoreOnIsolate=yes. On a remote server, isolating rescue.target stops networking and SSH. Only targets with AllowIsolate=yes can be isolated at all.
Inspecting targets
host$ systemctl get-default
multi-user.target
host$ systemctl list-units --type=target --no-legend | awk '{print $1}' | head
basic.target
cryptsetup.target
getty.target
local-fs.target
multi-user.target
host$ systemctl show -p AllowIsolate multi-user.target rescue.target sysinit.target
host$ systemctl list-dependencies graphical.target --no-pager | head -5
host$ sudo systemctl set-default graphical.target
Creating your own target
A custom target can group units that belong together, such as all parts of an application. Then they can be started and stopped as one, and other units can depend on the group.
| File | Content |
|---|---|
/etc/systemd/system/app-stack.target | [Unit] Description=App stack, Wants=app-db.service app-api.service, [Install] WantedBy=multi-user.target |
| Each member service | PartOf=app-stack.target, so a restart of the target restarts them |
systemctl restart app-stack.target then restarts every member, in their configured order.
Documented example, not captured output.
How it works at runtime
Targets is part of Boot Process → Targets. Targets in the boot context covers systemd synchronization/grouping units used to express boot milestones, default boot state and collections of dependencies such as rescue, multi-user and graphical states.
Topic-specific state model. Targets in the boot context covers systemd synchronization/grouping units used to express boot milestones, default boot state and collections of dependencies such as rescue, multi-user and graphical states.
Interpretation rule. - Target active ≠ all recursively wanted units succeeded.
- multi-user.target reached ≠ network, DNS, storage or application service is ready.
- Changing default.target symlink ≠ current boot has transitioned to that target.
- isolate target success ≠ it is safe for every workload; unrelated units can be stopped as part of isolation.
Quick reference
Boot targets in practice:
systemctl get-default
systemctl set-default multi-user.target # servers without GUI
systemctl isolate multi-user.target # switch now (stops graphical session)
# one-off at the GRUB prompt:
systemd.unit=multi-user.target
Custom targets can group an application's services (e.g. myapp.target with Wants= on its units) so the whole stack starts and stops together.
Limits and how it fails
Primary failure point. Target evidence ends at dependency transaction/milestone state; workload readiness and correctness require direct verification of the services and dependencies the user actually needs.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Targets owns boot-state grouping/milestones. systemd & Services owns general target/unit semantics; systemd Boot owns the full boot transaction; Runlevels owns legacy mapping.
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 → Targets. 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
Targets operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Targets.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Targets in the boot context covers systemd synchronization/grouping units used to express boot milestones, default boot state and collections of dependencies such as rescue, multi-user and graphical states. | 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 | default/selected target → dependency/wants graph → systemd jobs/order → constituent units → target active state → service readiness → workload outcome | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Target proof ends at dependency transaction/milestone state; workload readiness and correctness require direct verification of the services and dependencies the user actually needs. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux boot evidence can establish this proof path: default/selected target → dependency/wants graph → systemd jobs/order → constituent units → target active state → service readiness → workload outcome | 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. Target proof ends at dependency transaction/milestone state; workload readiness and correctness require direct verification of the services and dependencies the user actually needs. | 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. |
Targets · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Targets |
|---|---|
| Topic path | Boot Process → Targets |
| Runtime state | Targets in the boot context covers systemd synchronization/grouping units used to express boot milestones, default boot state and collections of dependencies such as rescue, multi-user and graphical states. |
| Fast checks | - Identify default target and actual boot target, including aliases such as graphical.target or multi-user.target. - Inspect Wants/Requires/After/Before relationships and failed jobs that affect the target's intended service set. - Use target state only as a milestone; separately test required services, mounts, network and workload readiness. - After changing default or isolating a target, verify both effective runtime state and behavior after a clean reboot. |
| Verification chain | default/selected target → dependency/wants graph → systemd jobs/order → constituent units → target active state → service readiness → workload outcome 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 | Target proof ends at dependency transaction/milestone state; workload readiness and correctness require direct verification of the services and dependencies the user actually needs. 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. |