unit enablement
Whether a systemd unit is set to start automatically at boot, which is separate from whether it is running now.
In more detail
systemctl enable creates the links that attach a unit to a target for future boots; systemctl start runs it now. A service can therefore be enabled but stopped, or running but not enabled. systemctl is-enabled and systemctl is-active answer the two questions separately.
Example
unit=web active=no enabled=yes: the service will start at next boot but is not running now.Related terms
- active state — Whether a systemd unit is running right now, reported as active, inactive, failed, activating or deactivating.
- systemd target — A systemd unit that groups other units into a milestone, such as multi-user.target for a normal server boot.
- 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.
Taught in
- systemd: Units, Targets And The Boot Graph — Linux Fundamentals & Systems Administration