Question 680
At Silvergate Services, a package update replaces a vendor unit file and silently erases an administrator's direct edits. The team is preparing a reversible change and needs a test that distinguishes the suspected fault from unrelated symptoms. A colleague suggests: “Edit the copy under /usr/lib/systemd directly after every upgrade without recording a diff.” Which flaw makes that recommendation inappropriate?
Explanation
Correct Answer
Place the supported override settings in a systemd drop-in and reload unit metadata before restarting safely. Verify that systemctl cat shows the drop-in and the setting survives a tested package refresh.
Incorrect Answers
“Use systemctl start once and presume it creates boot-time enablement.” is a different mistake. The current issue is that vendor-supplied files can be overwritten during upgrades, destroying local changes.
“Treat an After= line as though it both starts and requires the referenced service.” is a different mistake. The current issue is that vendor-supplied files can be overwritten during upgrades, destroying local changes.
“Assume every Linux system implements systemd targets.” is a different mistake. The current issue is that vendor-supplied files can be overwritten during upgrades, destroying local changes.