summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md36
1 files changed, 34 insertions, 2 deletions
diff --git a/README.md b/README.md
index 6b5ae80..30c7fa3 100644
--- a/README.md
+++ b/README.md
@@ -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
+ ```
+
+ ![systemd](systemd.svg)
+
## Lab 2