nerdexam
CompTIA

XK0-005 · Question #10120

A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the…

The correct answer is B. systemctl enable <name>.service. systemctl enable <name>.service creates the necessary symbolic links in the systemd boot target directories so that the specified service is automatically started during system boot. The other options are not valid systemd commands: 'systemctl service on', 'systemctl service…

System Management

Question

A systems administrator receives a report that the web server is not running after a planned system reboot. After starting the web server manually, which of the following commands should the administrator issue to ensure the web server starts at boot time?

Options

  • Asystemctl service on
  • Bsystemctl enable <name>.service
  • Csystemctl service enable
  • Dsystemctl on <name>.service

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    92% (23)
  • D
    4% (1)

Explanation

systemctl enable <name>.service creates the necessary symbolic links in the systemd boot target directories so that the specified service is automatically started during system boot. The other options are not valid systemd commands: 'systemctl service on', 'systemctl service enable', and 'systemctl on <name>.service' are all incorrect syntax and will not work.

Topics

#systemd#service management#boot process#systemctl

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice