# systemd

> The program that starts and checks on each service on Linux.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** systemctl, systemd Service, Unit File

## Think of it like

Think of it like a stage manager. It starts each act on time and restarts any that trips.

## Definition

systemd is the first program Linux starts at boot, and it starts all the rest. It brings up daemons in the right order. It restarts one if it crashes. You talk to it with the systemctl command. Each service is described in a small text file called a unit file.

## Example

Lucy changes her web server's settings. She runs sudo systemctl restart nginx, then checks it is active.

## Example code

```console
$ sudo systemctl restart nginx
$ systemctl is-active nginx
active
```

Restart the web server, then ask systemd whether it came back up.

## Why it matters

Starting, stopping and checking any service on a server goes through it.

## Common mistake

Starting a service but not enabling it. It runs now, but it will not come back after a reboot.

## Three principles

- **First at boot.** It starts everything else.
- **systemctl.** The command to control it.
- **Enable to keep.** Enable means start at boot.

## Related terms

- [Daemon](https://learn.benibix.com/term/infrastructure/daemon)
- [journalctl](https://learn.benibix.com/term/infrastructure/journalctl)
- [Cron](https://learn.benibix.com/term/infrastructure/cron)
- [Linux](https://learn.benibix.com/term/development/linux)

## Taught in

- [systemd and Daemons](https://learn.benibix.com/learn/infrastructure-linux/systemd-and-daemons): Linux CLI, 8/10

![systemd at the top, marked process number 1, starts and restarts three daemons below it: nginx, sshd and cron. All three daemons write lines into a journal at the bottom, and journalctl reads them back.](https://learn.benibix.com/diagrams/inf3-services.svg)

---

Source: https://learn.benibix.com/term/infrastructure/systemd
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
