Show the boot critical chain

Show the chain of units that really delays boot; more honest than blame

systemd-analyze critical-chain <unit>

tool
systemd26 commands
tags
systemdperformancetroubleshooting

More systemd commands

  • systemd-analyze plot > boot.svg

    Save the whole parallel boot timeline as SVG to see where units wait for each other

  • systemctl edit <unit> # writes /etc/systemd/system/<unit>.d/override.conf

    Change a unit without touching the vendor file; --full copies the whole unit for editing

  • systemctl daemon-reload

    Run it after manual edits, otherwise systemctl warns that the config is outdated

  • systemctl mask <unit> && systemctl unmask <unit>

    mask links the unit to /dev/null, so it cannot start even as a dependency (stronger than disable); unmask undoes it

  • systemctl list-dependencies <unit> --all

    Walk the whole Wants/Requires tree to see why a service pulls in others; --reverse shows who needs it

all 26 systemd commands