Interview Prep/Linux/systemd services and journald

A service dies when you log out of SSH, even though you started it with `systemctl --user start`.

IntermediateTroubleshootingsystemd services and journald
Answer

Likely causes → The user's systemd manager stops when the last session ends because lingering isn't enabled.

Diagnose →

loginctl show-user $USER -p Linger

Fix → sudo loginctl enable-linger <user>.

Prevent → Enable linger for any account running user services or rootless containers.

All Linux questions Roadmap: Linux

More on systemd services and journald