brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: systemd-analyze critical-chain shows what the boot waited for

Systemd
~/tips/tip-systemd-analyze-critical-chain

systemd-analyze critical-chain

Displays the chain of units that actually held up the boot, with start times.

Where blame lists slow units, critical-chain shows which of them actually delayed the boot.

systemd-analyze critical-chain
systemd-analyze critical-chain ssh.service

The output is a tree. A time after @ is when the unit became active, and a time after + is how long it took to start. Follow the chain from the target at the top downward and the units on it are the ones that blocked the rest. A unit with a long + that is not on the chain does not slow the boot. Pass a unit name to see the chain for that unit alone.

Further reading: systemd-analyze manual page

More Systemd tips [Service] sudo mkdir -p /etc/systemd/system/service.d [Service] printf 'hunter2' | sudo systemd-creds encrypt --name=dbpass – dbpass.cred systemd-analyze timespan 1h30min All Systemd tips (88) All topics

Link