← Knowledge Base
LinuxReference note1 min read · updated 2026-11-27

Manage services with systemctl and journalctl

Start, stop, enable and inspect systemd services, and read their logs.

systemdserviceslogs
systemctl status nginx              # state, recent log lines
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx        # stop + start
sudo systemctl reload nginx         # re-read config without dropping connections (if supported)
sudo systemctl enable --now nginx   # start now AND at every boot
sudo systemctl disable nginx
systemctl list-units --type=service --state=running
systemctl --failed                  # what failed to start
systemctl is-enabled nginx

Logs

journalctl -u nginx                 # everything from one service
journalctl -u nginx -f              # follow live
journalctl -u nginx --since "1 hour ago"
journalctl -p err -b                # errors since the current boot
journalctl --disk-usage             # how much space the journal uses

After editing a unit file run sudo systemctl daemon-reload. To stop a service from ever starting, sudo systemctl mask <name>.