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.

[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

Updated