What the generated unit contains
A systemd service file has three sections. [Unit] holds the description, documentation link, ordering, and the start rate limit. [Service] holds the type, the commands, the account, the environment, restart and timeout settings, logging, hardening, and resource limits. [Install] holds the target that pulls the unit in at boot when you run systemctl enable.
Only the directives you fill in are written. Empty fields and unchecked boxes are left out completely, so the file stays short enough to read and review by hand.
- Ordering with After, Wants, and Requires
- Service type, commands, account, and working directory
- Quoted Environment lines and an EnvironmentFile path
- Restart policy, timeouts, and start rate limiting
- Journal or file logging with an optional syslog tag
- Sandboxing directives and cgroup resource limits