systemd-analyze timeFast first look at slow boot issues.
Use systemd-analyze, unit verification, logs, and dependency tools to diagnose systemd problems.
Measure and visualize startup delays.
systemd-analyze timeFast first look at slow boot issues.
systemd-analyze blameGreat for identifying services slowing boot.
systemd-analyze critical-chainUseful when blame alone does not explain ordering impact.
systemd-analyze plot > boot.svgHelpful for visual boot analysis.
Validate units and inspect hardening.
systemd-analyze verify /etc/systemd/system/myapp.serviceRun this before or after writing custom units.
systemd-analyze security nginx.serviceUseful when improving service isolation and sandboxing.
systemctl show myapp -p ExecStartGood for checking what systemd is really executing.
systemctl show myapp -p Environment -p EnvironmentFilesUseful for broken env variable issues.
Troubleshoot failed services and restart loops.
systemctl status myapp.serviceStatus is often the fastest single command for incidents.
journalctl -u myapp.service -bFocuses on current startup issues only.
journalctl -u myapp.service -b -1Valuable after a boot-loop or crash.
systemctl show myapp -p Restart -p RestartSec -p StartLimitIntervalUSec -p StartLimitBurstCritical when diagnosing restart loops.
sudo systemctl edit myappPreferred over editing vendor files directly.
sudo systemctl revert myappHandy when overrides caused problems.