# Service Unit

say it: **“SER-vis YOO-nit”** **/ˈsɜːrvɪs ˈjuːnɪt/**

A file telling systemd how to run a program as a service.

## What is **Service Unit**?

A **service unit** file tells systemd how to run your program as a service: what command, which user, and restart rules.

```ini
[Unit]
Description=Recipe Box API

[Service]
ExecStart=/opt/recipe-api/RecipeApi
User=recipe
Restart=always

[Install]
WantedBy=multi-user.target
```

Level: Journeyman · [More Linux terms at this level](https://www.ask-codey.com/glossary?category=linux&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/service-unit
