Targets
Cheat sheet · https://pcornel.dk/topic.php?topic=2736
Answer
Boot targets decide what the system starts at boot: multi-user.target for servers, graphical.target for desktops, rescue.target and emergency.target for repair.
Remember
Set the default with systemctl set-default <target>; switch now with systemctl isolate <target>; boot once into a target with systemd.unit=<target> on the kernel command line.
First checks
systemd-analyze— boot time per stagejournalctl -b -p err— errors in this bootjournalctl --list-boots— previous bootscat /proc/cmdline— kernel command line used
Commands
systemctl get-defaultsystemctl set-default <target>systemctl isolate <target>systemctl start <target>systemctl restart app-stack.target
Verify in this order
default target set → reached at boot → units wanted by it started
Where it usually breaks
First mismatch in persistent unit/config/generator → dependency/order graph → systemd state → process/cgroup → socket/resource dependency → journal → consumer check; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2736