01
How do you manage a service with systemd?
Show answer
systemctl status nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl enable nginx # start at boot
sudo systemctl disable nginx
journalctl -u nginx -f # follow service logs
sudo systemctl daemon-reload # after editing a unit file
Unit files live in /etc/systemd/system. enable creates the symlink for the boot target, while start only runs it now.