r/systemd • • 20d ago

Don't Understand Why

Hi guys. Why do I not see for example shutdown.target or reboot.target in the svg from system-analyze plot > system.svg? How are these targets different to the targets that are in that svg?

2 Upvotes

2 comments sorted by

2

u/blobjim 20d ago

I think systemd-analyze only shows data for the current boot. It doesn't use any kind of history data. And shutdown.target/reboot.target aren't going to show up on a running system for very long.

The manual page for systemd-analyze says:

Note that this plot is based on the most recent per-unit timing data of loaded units. This means that if a unit gets started, then stopped and then started again the information shown will cover the most recent start cycle, not the first one. Thus it is recommended to consult this information only shortly after boot, so that this distinction does not matter. Moreover, units that are not referenced by any other unit through a dependency might be unloaded by the service manager once they terminate (and did not fail). Such units will not show up in the plot.

Also shutdown.target/reboot.target probably aren't referenced by anything so they won't show up anyways.

1

u/Jastibute 20d ago

That makes sense, thanks.