systemctl cheat sheet (Ubuntu)

systemd unit (service) control.

Status & list

systemctl status nginx.service
systemctl list-units --type=service --state=running
systemctl --failed

Start / stop / restart

sudo systemctl start nginx.service
sudo systemctl stop nginx.service
sudo systemctl restart nginx.service
sudo systemctl reload nginx.service

Enable / disable

sudo systemctl enable nginx.service
sudo systemctl disable nginx.service
sudo systemctl daemon-reload