Systemd and services study routine
A repeatable process to enable, debug, and recover services quickly.
Goal
Be able to diagnose and recover broken services quickly during timed exam-like exercises.
Practice workflow
- Create a test service unit.
- Enable and start the service.
- Inject a controlled failure and analyze logs.
- Document the fix and recovery checklist.
Key commands
sudo systemctl daemon-reload
sudo systemctl enable --now myapp.service
sudo systemctl status myapp.service
journalctl -u myapp.service -n 50 --no-pager