Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

start / stop / restart

Direct answer

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.

When to use this

Use it to apply configuration changes or recover a service.

First 30 seconds

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).

Operational verification

config validated → reload or restart → new process or re-read config → active → functional test

Evidence · next step

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
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 apply configuration changes or recover a service.
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

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 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

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.

Key checks
  • systemctl status <unit> — state, main PID, recent log lines
  • systemctl list-units --failed — failed units
  • journalctl -u <unit> -b — the unit's log since boot
  • systemctl cat <unit> — unit file plus drop-ins
  • systemd-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 start in one command go into one transaction, so their ordering dependencies are honoured.
  • stop fails for units that refuse a manual stop.
  • restart stops and starts, and starts the unit even if it wasn't running. try-restart only restarts units that are already running.
  • reload asks the service to reload its own configuration. reload-or-restart falls back to a restart if the service doesn't support reload.
  • reset-failed clears the failed state and the start rate-limit counters.

Which command when

SituationCommandEffect on clients
Config change the daemon can reload (nginx, sshd, haproxy)reloadExisting connections usually survive
Package update of a running servicetry-restartDoesn't start a service someone had stopped
Unknown whether reload is supportedreload-or-restartReload if possible
The service is hungrestart, or kill + startConnections are dropped
"Start request repeated too quickly"reset-failed, then startClears 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.

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

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:

CommandBehaviour
start / stopChange state; stop sends SIGTERM, then SIGKILL after TimeoutStopSec (default 90 s)
restartStop + start (connections drop)
reloadRun ExecReload= (e.g. SIGHUP) — config reload without downtime
try-restartRestart only if running
reload-or-restartReload 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).

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. 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
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 systemd & Services → start / stop / restart. 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
systemctl start stop restartrestart service linuxsystemd service lifecyclestart service systemd
Embedded reference data

Quick lookup tables

start / stop / restart operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for start / stop / restart.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective statestart, 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 verificationPin 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 chainpre-change evidence → start/stop/restart job → service lifecycle commands/signals → process/cgroup transition → active/sub state → readiness/drain result → workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryLifecycle 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 evidenceCorrelated 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 verificationUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundarystart / stop / restart
Topic pathsystemd & Services → start / stop / restart
Runtime statestart, 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 chainpre-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 boundaryLifecycle 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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?