3

Service Management with systemd

In the previous chapter, you learned about how processes work in Linux. Now it’s time to look at how these processes are wrapped in an additional layer of abstraction: the systemd service.

The commands you’ve seen so far – ls, mv, rm, ps, and others – run in the foreground, attached to your shell session. You run them, the programs do their job, and then they exit. However, not all programs run like this.

Services, also frequently called daemons, are long-running processes that run in the background. These can be things like databases and web servers, but also regular system services like your network manager, your desktop environment, and so on. These long-running background services are typically started and ...

Get The Software Developer's Guide to Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.