diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -95,8 +95,7 @@ 3. Draw a dependency graph that shows which daemons must be started before other daemons on your Linux system. - Since 2015, most Linux distributations have moved away from `UNIX System V` to - `systemd`. + Since 2015, most Linux distributations have moved away from `UNIX System V` to `systemd`. [systemd](https://en.wikipedia.org/wiki/Systemd) provides: @@ -115,6 +114,39 @@ * libudev * systemd-boot + ```bash + $ systemd-analyze critical-chain + The time when unit became active or started is printed after the "@" character. + The time the unit took to start is printed after the "+" character. + + graphical.target @9.797s + └─multi-user.target @9.796s + └─docker.service @6.941s +2.557s + └─network-online.target @6.938s + └─NetworkManager-wait-online.service @3.580s +3.357s + └─NetworkManager.service @3.529s +49ms + └─network-pre.target @3.527s + └─firewalld.service @2.099s +1.427s + └─polkit.service @2.671s +406ms + └─basic.target @2.095s + └─dbus-broker.service @2.135s +212ms + └─dbus.socket @2.087s + └─sysinit.target @2.085s + └─sys-fs-fuse-connections.mount @15.058s +5ms + └─systemd-journald.socket + └─-.mount + └─system.slice + └─-.slice + ``` + + Or we can plot the dependencies between all known target units. + + ```bash + $ systemd-analzye dot --to-pattern='*.target' --from-pattern='*.target' | dot -Tsvg > systemd.svg + ``` + +  + ## Lab 2 |
