Start, stop, inspect, and troubleshoot background services
Goal
You should be able to demonstrate the result described in the lesson and explain why each step was necessary.
You should be able to demonstrate the result described in the lesson and explain why each step was necessary.
Step-by-step
01
Check status
Use systemctl status SERVICE to see whether a unit is active and read the latest failure reason.
02
Inspect the journal
Use journalctl -u SERVICE –since today to see service-specific logs.
03
Restart only after understanding
A restart can hide the first failure. Read the logs before restarting when possible.
04
Enable at boot
Use systemctl enable only for services that should start automatically.
05
Find failed units
Use systemctl –failed after a reboot or update to spot obvious problems.
Verify before moving on
You should be able to demonstrate the result described in the lesson and explain why each step was necessary.
You should be able to demonstrate the result described in the lesson and explain why each step was necessary.
Troubleshooting
If a command or screen differs from the lesson, stop and verify the version you are using before forcing a change.
What you learned
You now understand the purpose of this part of the system and have a concrete result you can verify before continuing to the next lesson.