nerdexam
CompTIA

XK0-005 · Question #766

A Linux administrator changed a systemd configuration. However, the change was not applied after the service was restarted. Which of the following commands is required to apply the change?

The correct answer is C. systemctl daemon-reload. When making changes to systemd configuration files (such as unit files), the systemctl daemon- reload command must be run to reload the systemd manager configuration. systemctl enable only enables a service to start at boot but does not apply configuration changes immediately…

System Management

Question

A Linux administrator changed a systemd configuration. However, the change was not applied after the service was restarted. Which of the following commands is required to apply the change?

Options

  • Asystemctl enable
  • Bsystemctl import-environment
  • Csystemctl daemon-reload
  • Dsystemctl restart

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    91% (20)

Explanation

When making changes to systemd configuration files (such as unit files), the systemctl daemon- reload command must be run to reload the systemd manager configuration. systemctl enable only enables a service to start at boot but does not apply configuration changes immediately. systemctl restart restarts a specific service but does not reload the systemd daemon itself. The missing option appears to be an unrelated or incorrect command.

Topics

#systemd#service management#Linux configuration#daemon reload

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice