Linux interview question

How do systemd units work, and how do you debug a service that won't start?

How it works Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

systemd starts services from unit files that declare the command, user, dependencies, restart policy and environment. systemctl status and journalctl -u name show why a unit failed; most failures are a wrong path, permissions, a missing environment variable or a port already in use.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Linux questions

← All Linux questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake