Interview Prep/Linux/Packages, kernel and boot

A newly installed service isn't enabled at boot on Debian but is on RHEL. Why might that be, and how do you standardise?

BeginnerScenarioPackages, kernel and boot
Answer

Situation read → Distro presets differ.

What I'd do →

  1. Debian/Ubuntu usually enable and start services on install; RHEL doesn't, by preset policy.
  2. Check: systemctl is-enabled svc and systemctl preset svc.
  3. Standardise in config management: always state enabled: true and state: started explicitly.

Why → Relying on distro defaults causes surprises after a reboot.

Interview tip → Mention preset files under /usr/lib/systemd/system-preset/.

All Linux questions Roadmap: Linux

More on Packages, kernel and boot