nerdexam
CompTIA

XK0-005 · Question #1439

After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed. In order to use the new version of the, service file…

The correct answer is D. systemctl daemon-reload. To have your changes take effect, issue the systemctl daemon-reload command for the service whose unit file you modified or extended. After you accomplish that task, issue the systemctl restart command to start or restart the service.

System Management

Question

After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed. In order to use the new version of the, service file, which of the following commands must be Issued FIRST?

Options

  • Asystemctl status
  • Bsystemctl stop
  • Csystemctl reinstall
  • Dsystemctl daemon-reload

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    3% (1)
  • C
    9% (3)
  • D
    86% (30)

Explanation

To have your changes take effect, issue the systemctl daemon-reload command for the service whose unit file you modified or extended. After you accomplish that task, issue the systemctl restart command to start or restart the service.

Topics

#systemd#service management#configuration reload#daemon-reload

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice