Check whether web.service is enabled for boot without starting, stopping, or reloading it.
Which command is appropriate?
systemctl is-enabled reports boot activation state; is-active reports the current runtime state.
Detailed explanation
systemctl is-active web.serviceIncorrect. is-active checks whether the service is currently running.
systemctl start web.serviceIncorrect. start changes runtime state.
systemctl is-enabled web.serviceCorrect. It reports whether the unit is enabled.
systemctl reload web.serviceIncorrect. reload asks a running service to reread configuration.
Try it yourself
An example you can run in a temporary verification environment.
systemctl --help 2>&1 | grep -E -- 'is-enabled|is-active' | head -n 2Expected result
is-enabledとis-activeの説明行Key points
- is-enabled is boot configuration
- is-active is current state
- Read-only check
Notes
- Environment: systemd systemctl help / unit照会なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Protected account data
Sensitive authentication data stored separately from ordinary account records.
Service availability
Whether a service can start automatically or be activated on demand.
Packet filter
A host firewall rule set that permits or rejects network packets.