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

Taught in

References