CompTIA Server+ (SK0-005)Server AdministrationMedium
A server administrator is setting up a new Linux server that will host several critical applications. To ensure system stability and resource allocation, the administrator needs to define which services start automatically at boot and manage their run levels. Which configuration utility is primarily used for this purpose on modern Linux distributions?
- Asystemctl
- Bchkconfig
- Cinit.d scripts
- Drc.local
Show answer & explanationAnswer & explanation
Correct answer: A. systemctl
On modern Linux distributions (those using systemd), 'systemctl' is the primary command-line utility used to manage services, including enabling/disabling them at boot, starting/stopping them, and checking their status. It replaces older init systems and tools like 'chkconfig' and direct 'init.d' script management.
Why the other options are wrong
- B. chkconfig was used with SysVinit to manage services across runlevels but has been largely superseded by systemctl on systemd-based systems.
- C. init.d scripts are part of older SysVinit systems and are not the primary method on modern systemd-based Linux distributions.
- D. rc.local is a script executed at the end of the boot process for custom commands, but it's not the standard way to manage official system services and is often deprecated.
systemctl
A command-line utility used to control the systemd system and service manager, which is the default init system for most modern Linux distributions.
- Manages services, units, and targets.
- Enables/disables services at boot.
- Replaced SysVinit and Upstart tools.
Memory trick: System Control, Start Smart