All jobs / DevOps / SRE / cloud / Linux

DevOps / SRE / cloud interview question · 0–1 years

A VM was rebooted for patching. The API on it did not come back; a teammate says systemd is broken.

What do you check, and what was the likely mistake?

The strongest answer

`systemctl status api` and `journalctl -u api -b` first; most likely the unit was started but never enabled, so it does not start at boot — `systemctl enable --now` fixes both

Why it works

Exactly — start is for now, enable is for boot, and the journal tells you whether it tried and failed or never tried.

What a good answer covers

Answers that fall short

Who gets asked this

More Linux questions