nerdexam
CompTIA

XK0-005 · Question #387

A junior administrator updated the PostgreSQL service unit file per the database administrator's recommendation. The service has been restarted, but changes have not been applied. Which of the…

The correct answer is B. systemctl daemon-reload. To apply changes to a systemd service unit file, the administrator needs to reload the systemd daemon using the command systemct1 daemon-reload (B). This will make systemd aware of the new or changed unit files. The other commands will not reload the systemd daemon or apply the

System Management

Question

A junior administrator updated the PostgreSQL service unit file per the database administrator's recommendation. The service has been restarted, but changes have not been applied. Which of the following should the administrator run for the changes to take effect?

Options

  • Asystemctl get-default
  • Bsystemctl daemon-reload
  • Csystemctl enable postgresql
  • Dsystemctl mask postgresql

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    81% (17)
  • C
    5% (1)
  • D
    5% (1)

Explanation

To apply changes to a systemd service unit file, the administrator needs to reload the systemd daemon using the command systemct1 daemon-reload (B). This will make systemd aware of the new or changed unit files. The other commands will not reload the systemd daemon or apply the

Topics

#systemd#service management#unit files#daemon-reload

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice