Use it when a service is not running, does not start after a reboot, or keeps restarting.
systemd & Services
systemd starts, supervises and stops the services on a Linux system. Each service is a unit, controlled with systemctl, and its output goes to the journal.
1. systemctl status <unit> — active, inactive or failed? Enabled?
2. Failed → journalctl -u <unit> -b -e: the last lines before it stopped.
3. Runs, but gone after reboot → systemctl enable <unit>.
4. Change not applied → systemctl daemon-reload, then systemctl restart <unit>.
5. Active but not answering → test the service itself: ss -ltnp, a local request.
unit file found and loaded → enabled for boot → dependencies started → process started and stays up → application listening → answers a real request
For systemd & Services, continue with the first unproven Topic check: Resolve the exact unit and capture its effective definition plus drop-ins. If that boundary is healthy, advance to the adjacent check: Inspect enablement, dependencies/order and the specific systemd job result separately. 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.
systemctlPrimary Commands
Configuration and operational commands for this Topic.
systemctlReferenceInspect or change systemd unit state, enablement and manager operations.
Use when: Primary lookup intent: configure. Use systemctl when the lookup goal is to inspect or change systemd unit state, enablement and manager operations. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Post-change verification for systemctl: Verify unit state plus real readiness and the original application/workload path. Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: configure. Safety class: disruptive. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. systemctl is documented as an operational lookup primitive under systemd & Services. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
journalctlVerifyQuery systemd journal records by unit, boot, time, priority or structured field.
Use when: Primary lookup intent: troubleshoot. Use journalctl when the lookup goal is to query systemd journal records by unit, boot, time, priority or structured field. Tie the result to the same host, namespace, user identity and time window as the symptom.
Quick note: Output review: healthy and suspicious cues are command-specific interpretation boundaries, not fixed literal output samples. Intent class: troubleshoot. Safety class: read_only. Intent describes the primary lookup role; safety remains command-family capability and can be higher than a read-only invocation. journalctl is documented as an operational lookup primitive under Logging. The canonical leaf intentionally represents the command family; options remain distribution/tool-version specific.
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
unit source + drop-ins → manager load state → dependency/order graph → requested systemd job → process/cgroup activation → unit active/sub result → application readiness → workload result
Healthy evidence: effective unit definition, dependencies, manager state, process/cgroup identity and application readiness all agree with intended service behavior.
Step 2 Operational verification Verify boundary
systemd units, boot targets, service dependencies and operational service-state verification.
Fast verification
- Use
systemctl --failedandsystemctl status <unit>to establish current service state.
- Check enablement, dependencies and the first failing unit instead of restarting a dependency chain repeatedly.
- Correlate the unit state with journalctl -u <unit> -b for the same boot.
Step 3 Commands Verify boundary
systemctl status nginx
systemctl list-units --failed
journalctl -u nginx -b
systemctl cat nginx
Step 4 Verification and output interpretation Verify boundary
Verification path. Correlate unit state with MainPID/cgroup membership and then with the service-specific listener, socket, file or transaction that represents useful work. Use process state, exit code/reason, journal for the same boot/unit, and dependency results. For restart loops, preserve timestamps and counters before intervening. Verify enablement only when persistence across boot matters; verify current runtime separately. A green active status is a starting point, not end-to-end evidence.
Existing fast checks for this Topic. - Resolve the exact unit and capture its effective definition plus drop-ins.
- Inspect enablement, dependencies/order and the specific systemd job result separately.
- Correlate unit active/sub state, cgroup/process identity and journal entries with application readiness.
- Repeat the original service/workload acceptance test after any controlled change.
Verification chain. unit source + drop-ins → manager load state → dependency/order graph → requested systemd job → process/cgroup activation → unit active/sub result → application readiness → workload result
Step 5 Common mistakes Narrow the fault
- Editing unit files under
/usr/lib/systemdinstead of using drop-ins. - Forgetting
daemon-reloadafter changes.
Step 6 Failure modes and next checks Narrow the fault
Suspicious evidence: operators stop at active (running), ignore drop-ins or daemon-reload, or treat enablement as evidence of current runtime health.
It does not show behavior outside the captured process, manager, unit, dependency, runtime or application scope. systemd manager state shows service-manager observations and transitions; it does not automatically show that the application protocol or dependent workload is functioning.
Next check: Continue from the first step that has not been verified: reacquire stable process identity, inspect effective loaded unit configuration and dependency/job state, correlate process/cgroup plus journal evidence, then run the original readiness/workload test before changing additional settings.
Step 7 Where it fails Narrow the fault
Walk persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check and stop where observed state diverges.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Healthy evidence: effective unit definition, dependencies, manager state, process/cgroup identity and application readiness all agree with intended service behavior. Suspicious evidence: operators stop at active (running), ignore drop-ins or daemon-reload, or treat enablement as proof of current runtime health.
command output · Documented exampleSystem & Service Management local healthy-state checkpointThe expected object, scope, state and counters match a controlled test.
Subtopics
Go one level deeper into this subject.
systemd is the Linux system and service manager commonly running as PID 1, responsible for unit loading, dependency transactions, service supervision, sockets/timers, cgroup placement and lifecycle coordination.
Subtopic UnitsUnits are systemd objects representing manageable resources such as services, sockets, targets, mounts, timers and paths; unit type, load state, dependencies and activation semantics determine what systemd can coordinate.
Subtopic ServicesService units describe processes or service lifecycles managed by systemd, including start commands, service Type, restart policy, environment, credentials, dependencies and readiness semantics.
Subtopic TargetsTargets are synchronization/grouping units used to express system states or activation groupings; they primarily collect dependency relationships and provide transaction anchors rather than running a workload themselves.
Subtopic Service DependenciesService Dependencies in systemd are separate requirement and ordering relationships that shape transactions: Wants=/Requires=/BindsTo= express forms of requirement, while Before=/After= express ordering, and these dimensions must not be conflated.
Subtopic Unit FilesUnit Files are the persistent or generated definitions systemd loads from its search path, with vendor files, administrator overrides and drop-ins combining into an effective unit configuration.
Subtopic daemon-reloaddaemon-reload tells systemd to reload unit configuration, rerun generators and rebuild manager dependency data; it refreshes the manager model but does not inherently restart already running services.
Subtopic enable / disableenable and disable manage boot/activation relationships for unit files, typically by creating or removing symlink-based installation dependencies defined by [Install]; they do not directly describe current runtime state.
Subtopic start / stop / restartstart, stop and restart request runtime lifecycle jobs from systemd; their completion reflects manager/job semantics and service Type, while application readiness and graceful shutdown remain separate verification boundaries.
Subtopic Timerssystemd timers schedule activation of units using monotonic or realtime calendar triggers, persistence and randomized delays; the timer firing and the triggered service succeeding are separate events.
Running now and starting at boot are separate: start versus enable. "Active (running)" means the process exists, not that the application answers. After editing a unit file: systemctl daemon-reload, then restart.
systemctl status <unit>— loaded, enabled, active or failed, since when, last log lines.systemctl --failed— every unit that failed.journalctl -u <unit> -b— the unit's log since boot.systemctl is-enabled <unit>— will it start at boot?systemctl cat <unit>— the unit file and drop-ins in effect.
ReferenceWhat it is2 sections · depth on demand
What it is
systemd is the service manager on most Linux distributions. It starts the system's services at boot in the right order, keeps track of them while they run, restarts them if configured to, and stops them at shutdown. Each service is described by a unit file and controlled with systemctl.
Core model
Start with the exact unit name and effective unit definition, then separate boot enablement, dependency/order graph, requested systemctl job, manager-reported active/sub state, main/control process identity and application readiness. systemd acceptance of a job is not the same boundary as successful application initialization.
ReferenceWhy it matters2 sections · depth on demand
When to use it
Use System & Service Management when the problem concerns Linux runtime, services, networking, identity, packages, storage or shell automation.
Why it matters operationally
Almost every "the service is not running" or "it does not start after a reboot" question on a Linux server is answered by systemd: it knows whether the service was started, why it stopped, what it logged, and whether it is set to start at boot. Two commands — systemctl status and journalctl -u — cover most of it.
ReferenceHow it works1 section · depth on demand
How it works
Units. Everything systemd manages is a unit, described by a file such as nginx.service. Besides services there are sockets, timers, mounts and targets (groups of units, such as multi-user.target for a normal server boot).
Two independent properties. A service is active or not — whether it runs now — and enabled or not — whether it starts at boot. They are set separately:
| Command | Effect |
|---|---|
systemctl start nginx | Start now |
systemctl stop nginx | Stop now |
systemctl restart nginx | Stop and start |
systemctl reload nginx | Ask the service to re-read its configuration without stopping |
systemctl enable nginx | Start at boot from now on |
systemctl disable nginx | Do not start at boot |
systemctl enable --now nginx | Both at once |
A service can be running and not enabled — it will be gone after the next reboot — or enabled and not running.
Status. systemctl status nginx shows whether the unit is loaded, enabled, active or failed, since when, its main process, and the last log lines. systemctl --failed lists everything that failed.
Logs. Whatever a service writes to its output goes to the journal: journalctl -u nginx, with -b for the current boot only and -f to follow.
Dependencies and order. A unit file can say which other units it needs (Requires=, Wants=) and which it must start after (After=). Needing a unit and ordering after it are separate statements; most services want both.
Changing a unit. Vendor unit files live in /usr/lib/systemd/system and are replaced by package updates. Local changes go in a drop-in created with systemctl edit nginx, stored under /etc/systemd/system. After editing unit files by hand, run systemctl daemon-reload; then restart the service for the change to apply.
ReferenceImportant terms & boundaries4 sections · depth on demand
What this shows and what it does not
systemd manager state shows service-manager observations and transitions; it does not automatically show that the application protocol or dependent workload is functioning.
In depth
Managing services with systemctl: a working routine
Almost all service administration on modern Linux goes through systemctl. The systemctl(1) manual page describes the commands in families:
- Lifecycle:
start,stop,restart,try-restart,reload,reload-or-restart. - Boot behaviour:
enable,disable,mask,unmask. - Inspection:
status,is-active,is-enabled,is-failed,list-units,list-dependencies,cat,show. - Housekeeping:
daemon-reloadandreset-failed.
Two points cause the most confusion. enable only creates the boot-time links, unless --now is also given. And reload asks the service to reload its own configuration; it doesn't re-read the unit file.
A routine for any service change
| Step | Command | Purpose |
|---|---|---|
| 1. See current state | systemctl status <unit> | State, main PID, last 10 log lines |
| 2. See the unit as loaded | systemctl cat <unit> | Unit file plus drop-ins |
| 3. Change via a drop-in | systemctl edit <unit> | Creates override.conf and reloads systemd |
| 4. Apply | systemctl restart <unit> (or reload) | New settings take effect |
| 5. Verify | systemctl is-active <unit>; journalctl -u <unit> -b | Running, and no errors |
| 6. Boot behaviour | systemctl is-enabled <unit> | Starts at boot? |
Commands for scripts
is-active returns 0 if the unit is active, and is-failed returns 0 if it has failed. Without arguments, is-failed reports whether the whole system is degraded. That makes both suitable for health checks without parsing text.
host$ systemctl status nginx --no-pager | head -5
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─override.conf
Active: active (running) since Sat 2026-11-28 09:12:04 CET; 2h ago
host$ systemctl is-active nginx && echo up
host$ systemctl --failed
host$ systemctl is-system-running
degraded
host$ systemctl list-units --type=service --state=running --no-legend | wc -l
host$ systemctl show nginx -p ActiveEnterTimestamp,NRestarts,MainPID
Reading the status header
Loaded: shows which file was used, whether the unit is enabled, and the vendor preset. Drop-In: lists the overrides in effect. When a setting doesn't behave as expected, those two lines usually explain why.
Documented example, not captured output.
How it works at runtime
systemd & Services is part of systemd & Services. systemd & Services covers Linux service-manager control from unit definitions and dependency ordering through jobs, cgroups, activation, enablement, timers, journal evidence and application readiness.
Runtime state ownership and mechanics. Processes have PID/TID identity, parentage, credentials, namespaces, cgroups, open files, memory mappings, scheduling state and signal disposition. systemd adds unit state, dependency ordering, cgroup ownership, restart policy and activation semantics above the raw process model. A service unit can be active while a child workload is degraded, and a daemon process can exist outside the intended unit or with stale configuration.
Topic-specific state model. systemd & Services covers Linux service-manager control from unit definitions and dependency ordering through jobs, cgroups, activation, enablement, timers, journal evidence and application readiness.
Technical metadata. Host/container, boot/session context, timestamp, PID namespace, PID/PPID + start time, executable/cmdline, process state, credentials, cgroup, canonical unit name/type, fragment path + drop-ins, load/unit-file state, requirement and ordering edges, systemd job result, MainPID/control process, active/sub/result state, journal correlation, readiness probe, original workload result.
Interpretation rule. - Enabled ≠ running.
- Active/running ≠ application ready or healthy.
- systemctl command success ≠ downstream workload acceptance.
- Unit file edited on disk ≠ manager has reloaded the changed definition.
Limits and how it fails
Primary failure point. systemd manager state shows service-manager observations and transitions; it does not automatically show that the application protocol or dependent workload is functioning.
Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload.
Model. PID existence does not show health, and a dead MainPID can be expected for oneshot units. “enabled” does not mean running, “active” does not mean enabled, and daemon-reload does not apply daemon configuration. systemd dependency ordering is not necessarily a readiness guarantee unless the service protocol/unit design provides one. Process CPU/memory symptoms can originate in kernel wait, I/O, child processes or cgroup limits rather than application code alone.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Configuration intent and lifecycle. For systemd-managed workloads, the unit plus drop-ins and generators form persistent intent; daemon-specific configuration remains a separate layer. enablement controls boot/target linkage and is distinct from current active state. daemon-reload refreshes systemd’s unit model but does not restart services. Restart, reload and start each have different semantics. Preserve unit override ownership instead of editing vendor unit files unless replacement is deliberate and maintained.
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 systemd & Services. 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
systemd & Services operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for systemd & Services.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | systemd & Services covers Linux service-manager control from unit definitions and dependency ordering through jobs, cgroups, activation, enablement, timers, journal evidence and application readiness. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin host/container + timestamp → identify exact process or unit → capture PID plus start identity and cgroup/unit → resolve effective unit fragment + drop-ins → inspect dependency/order transaction → record systemd job result → verify process/cgroup and active/sub state → prove application readiness → repeat the original workload test. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | unit source + drop-ins → manager load state → dependency/order graph → requested systemd job → process/cgroup activation → unit active/sub result → application readiness → workload result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | systemd manager state proves service-manager observations and transitions; it does not automatically prove that the application protocol or dependent workload is functioning. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux process/systemd evidence can establish this proof path: unit source + drop-ins → manager load state → dependency/order graph → requested systemd job → process/cgroup activation → unit active/sub result → application readiness → workload result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured process, manager, unit, dependency, runtime or application scope. systemd manager state proves service-manager observations and transitions; it does not automatically prove that the application protocol or dependent workload is functioning. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: reacquire stable process identity, inspect effective loaded unit configuration and dependency/job state, correlate process/cgroup plus journal evidence, then run the original readiness/workload test before changing additional settings. | Continue to the next unresolved boundary while preserving the original test condition. |
systemd & Services · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | systemd & Services |
|---|---|
| Topic path | systemd & Services |
| Runtime state | systemd & Services covers Linux service-manager control from unit definitions and dependency ordering through jobs, cgroups, activation, enablement, timers, journal evidence and application readiness. |
| Fast checks | - Resolve the exact unit and capture its effective definition plus drop-ins. - Inspect enablement, dependencies/order and the specific systemd job result separately. - Correlate unit active/sub state, cgroup/process identity and journal entries with application readiness. - Repeat the original service/workload acceptance test after any controlled change. |
| Verification chain | unit source + drop-ins → manager load state → dependency/order graph → requested systemd job → process/cgroup activation → unit active/sub result → application readiness → workload result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. |
| Failure boundary | systemd manager state proves service-manager observations and transitions; it does not automatically prove that the application protocol or dependent workload is functioning. Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |