thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Systems & Data Center · Intermediate

systemd Unit File

A configuration file describing a systemd-managed resource, such as a .service, .socket, .timer, .mount or .target unit.

Definition

Vendor units live in /usr/lib/systemd/system and administrator overrides in /etc/systemd/system, which takes precedence. Service units have [Unit], [Service] and [Install] sections; systemctl edit creates drop-in overrides. After changes, run systemctl daemon-reload.

Example

A [Service] section with ExecStart=/opt/app/bin/server and Restart=on-failure keeps an app running.

Exam tip

Put custom or override units in /etc/systemd/system and remember systemctl daemon-reload after editing.

Related terms