SSH, your web server, scheduled jobs: everything important on your server runs as a service, and one tool controls them all: systemd. In this episode you'll learn what a service is, how to check it with systemctl status, how to start, stop, restart and reload it, the difference between start and enable, how to find failed services, how to read logs with journalctl, and how to fix a failed service step by step.

⏱ Chapters
0:00 Who restarts your server at 3 AM?
0:21 What is a service? (systemd)
0:44 systemctl status
1:00 start, stop, restart, reload
1:16 start vs enable
1:32 List running & failed services
1:45 Logs with journalctl
2:07 Fixing a failed service
2:28 Common mistakes
2:48 Cheat sheet
3:09 Like & subscribe
3:21 Homework & up next

⌨️ Commands from this video
systemctl status nginx is it running? (q to quit)
sudo systemctl stop / start / restart nginx control a service
sudo systemctl reload nginx re-read the config, no downtime
sudo systemctl enable --now nginx start now and at every boot
sudo systemctl disable nginx don't start at boot
systemctl is-active nginx quick check: active?
systemctl is-enabled nginx quick check: enabled?
systemctl list-units --type=service --state=running what's running
systemctl --failed what's broken
journalctl -u nginx logs of one service
journalctl -u nginx -f follow logs live (Ctrl+C to stop)
journalctl -u nginx --since "1 hour ago" only recent logs
journalctl -u nginx -n 50 only the last 50 lines
journalctl -p err -b errors since the last boot
sudo nginx -t test the nginx config before restarting
sudo systemctl daemon-reload after editing a .service file

🔧 Failed service? status → journal → fix → test → restart.
💡 start = now, enable = at every boot. You usually want both: enable --now.

📺 Full course playlist:
◀ Previous – #10 SSH Like a Pro: Keys & Secure Login:


▶ Next – #12 Disks & Storage: df, du & mount: coming soon

💬 Homework: check the status of ssh, list failed services, then follow the ssh log live (journalctl -u ssh -f) and log in from a second terminal. Did you see your own login? Tell me in the comments!

👍 If this helped, like & subscribe, it keeps the course free.
© netacademy.ge

#Linux #UbuntuServer #systemd

Last modified: Sunday, 6 December 2026, 10:07 AM