What is a systemd unit?
A systemd unit is a configuration file that describes something systemd manages on a Linux host, most often a service, but also a timer, a socket or a mount.
systemd, the init system on most modern Linux distributions, reads unit files from /etc/systemd/system and /usr/lib/systemd/system. The file name’s suffix gives the type: .service for a daemon, .timer for a scheduled job, .socket for socket activation, .mount for a filesystem. A service unit sets what to run (ExecStart), when (After=, WantedBy=), as which user, and what to do on failure (Restart=).
systemctl status nginx shows a unit’s state, its recent log lines and its memory use, and systemctl --failed lists units that have failed. Units are the natural thing to monitor on a server: a service that is enabled but not running, or one that restarts in a loop, is a failure the host’s CPU and memory charts do not show.
Example
# /etc/systemd/system/app.service
[Unit]
Description=Example app
After=network-online.target
[Service]
User=app
ExecStart=/usr/local/bin/app --port 8080
Restart=on-failure
[Install]
WantedBy=multi-user.targetHow WatchTower15 checks it
The WatchTower15 agent reports the server's systemd services, and a server's System services tab lists them with their state and any alarm firing.