active state
Whether a systemd unit is running right now, reported as active, inactive, failed, activating or deactivating.
In more detail
It answers is it up now, while enablement answers will it start at boot. systemctl status shows the active state with the main PID and the last few journal lines. Check it first on the diagnostic ladder: a stopped service cannot answer anything.
Related terms
- unit enablement — Whether a systemd unit is set to start automatically at boot, which is separate from whether it is running now.
- systemctl status — The command that shows a systemd unit's current state, main PID, recent resource use and last few log lines.
- systemd unit — One object systemd manages, such as a service, a mount or a target, described by a unit file and named with a suffix like web.service.
- diagnostic ladder — The course's ordered checklist for a failing service: is it up, is it named, is it routed, is it listening, is it answering, is traffic arriving?
Taught in
- systemd: Units, Targets And The Boot Graph — Linux Fundamentals & Systems Administration
- The Diagnostic Ladder: Is It Up, Is It Named, Is It Routed — Linux Fundamentals & Systems Administration