systemd service

A systemd unit that describes a long-running or one-shot process: what command to run, as which user and what to do when it exits.

In more detail

Its [Service] section holds ExecStart for the command, User for the identity and Restart for the failure policy. systemctl start runs it now and systemctl enable makes it start at boot. Keep the declaration small and put application settings in the application's own configuration or an environment file.

Related terms

Taught in

References