Use it to apply configuration changes or recover a service.
start / stop / restart
systemctl start, stop, restart and reload control a running unit; reload re-reads configuration without stopping the process (if the service supports it); try-restart restarts only if running.
1. Config test with the program's own check.
2. systemctl reload <svc> (or restart if reload is not supported).
3. systemctl status <svc> — active (running)?
4. journalctl -u <svc> -e — errors?
5. Functional test (port, URL, login).
config validated → reload or restart → new process or re-read config → active → functional test
For systemd & Services → start / stop / restart, continue with the first unproven Topic check: Capture current unit state, process identity, journal context and workload symptom before action. If that boundary is healthy, advance to the adjacent check: Execute the minimal lifecycle operation and record the systemd job result. 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
pre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verification
Healthy evidence: the requested lifecycle transition occurs cleanly, process/cgroup state matches intent, readiness/drain checks pass and the original workload remains stable.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Capture current unit state, process identity, journal context and workload symptom before action.
- Execute the minimal lifecycle operation and record the systemd job result.
- Verify process/cgroup and active/sub transitions according to service Type.
- Repeat the original readiness/workload test and watch for recurrence before declaring recovery.
Verification chain. pre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verification
Step 3 Commands Verify boundary
systemctl restart app
systemctl reload app
systemctl stop app
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: restart is used to make the symptom disappear without preserving evidence or proving durable recovery.
Step 5 Common mistakes Narrow the fault
- Restart where reload is enough.
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.
Test the configuration before restarting (e.g. nginx -t) to avoid taking the service down. Prefer reload where supported to keep connections. Check status and logs after every restart.
systemctl status <unit>— state, main PID, recent log linessystemctl list-units --failed— failed unitsjournalctl -u <unit> -b— the unit's log since bootsystemctl cat <unit>— unit file plus drop-inssystemd-analyze verify <unit>— unit file errors
ReferenceWhat it is1 section · depth on demand
Core model
Capture pre-action state and reason before changing service lifecycle. Start requests activation, stop requests deactivation and restart composes stop/start semantics subject to unit behavior. Correlate the job result with journal, process/cgroup transition, active/sub state and application acceptance; avoid restart-as-diagnosis because it can erase transient evidence.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Lifecycle command success shows systemd completed its job semantics, not application readiness, clean drain or durable root-cause remediation.
In depth
start, stop, restart and reload in practice
The lifecycle commands look obvious, but they differ in important details. The systemctl(1) manual page describes them:
- Several units given to
startin one command go into one transaction, so their ordering dependencies are honoured. stopfails for units that refuse a manual stop.restartstops and starts, and starts the unit even if it wasn't running.try-restartonly restarts units that are already running.reloadasks the service to reload its own configuration.reload-or-restartfalls back to a restart if the service doesn't support reload.reset-failedclears the failed state and the start rate-limit counters.
Which command when
| Situation | Command | Effect on clients |
|---|---|---|
| Config change the daemon can reload (nginx, sshd, haproxy) | reload | Existing connections usually survive |
| Package update of a running service | try-restart | Doesn't start a service someone had stopped |
| Unknown whether reload is supported | reload-or-restart | Reload if possible |
| The service is hung | restart, or kill + start | Connections are dropped |
| "Start request repeated too quickly" | reset-failed, then start | Clears the rate limit |
Validate before reloading
A reload with a broken configuration may fail, or take the service down. Most daemons have a check option: nginx -t, sshd -t, haproxy -c -f, named-checkconf. Run it first.
host$ sudo nginx -t && sudo systemctl reload nginx
nginx: configuration file /etc/nginx/nginx.conf test is successful
host$ sudo systemctl restart report-api
Job for report-api.service failed because the control process exited with error code.
See "systemctl status report-api.service" and "journalctl -xeu report-api.service" for details.
host$ journalctl -u report-api -n 20 --no-pager
host$ systemctl status report-api --no-pager | grep -E "Active|Process|code="
Active: failed (Result: exit-code) since Sat 2026-11-28 11:40:02 CET
Process: 8812 ExecStartPre=/usr/local/bin/report-api --check-config (code=exited, status=2)
host$ sudo systemctl reset-failed report-api
host$ sudo systemctl kill --signal=SIGUSR1 nginx
Reading the failure
The Process: line shows that the ExecStartPre= check exited with status 2. The configuration test failed, and the service itself was never started. The journal lines just above usually show the program's own error message.
Documented example, not captured output.
How it works at runtime
start / stop / restart is part of systemd & Services → start / stop / restart. start, 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.
Topic-specific state model. start, 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.
Interpretation rule. - systemctl start success ≠ service ready.
- systemctl stop success ≠ every external resource/session is cleanly drained.
- restart success ≠ root cause fixed.
- Changed PID after restart ≠ workload recovered.
Quick reference
Start/stop/restart semantics:
| Command | Behaviour |
|---|---|
start / stop | Change state; stop sends SIGTERM, then SIGKILL after TimeoutStopSec (default 90 s) |
restart | Stop + start (connections drop) |
reload | Run ExecReload= (e.g. SIGHUP) — config reload without downtime |
try-restart | Restart only if running |
reload-or-restart | Reload if supported, else restart |
nginx -t && systemctl reload nginx
systemctl restart app && systemctl is-active app
journalctl -u app -n 30 --no-pager
Validate configs before reload/restart (nginx -t, sshd -t, apachectl configtest, named-checkconf).
Limits and how it fails
Primary failure point. Lifecycle command success shows systemd completed its job semantics, not application readiness, clean drain or durable root-cause remediation.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. start / stop / restart owns runtime service lifecycle actions. Service application-level health and shutdown semantics remain workload-specific.
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 → start / stop / restart. 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
start / stop / restart operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for start / stop / restart.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | start, 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. | 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 | pre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Lifecycle command success proves systemd completed its job semantics, not application readiness, clean drain or durable root-cause remediation. | 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: pre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verification | 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. Lifecycle command success proves systemd completed its job semantics, not application readiness, clean drain or durable root-cause remediation. | 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. |
start / stop / restart · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | start / stop / restart |
|---|---|
| Topic path | systemd & Services → start / stop / restart |
| Runtime state | start, 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. |
| Fast checks | - Capture current unit state, process identity, journal context and workload symptom before action. - Execute the minimal lifecycle operation and record the systemd job result. - Verify process/cgroup and active/sub transitions according to service Type. - Repeat the original readiness/workload test and watch for recurrence before declaring recovery. |
| Verification chain | pre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verification 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 | Lifecycle command success proves systemd completed its job semantics, not application readiness, clean drain or durable root-cause remediation. 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. |