• [^] # Re: Dossier units ?

    Posté par . En réponse au message units : tous les liens sont brisés. Évalué à 2. Dernière modification le 11 avril 2020 à 10:38.

    Bonjour,

    Ce que j'ai pu trouver comme explications concernant ce dossier units :

    Systemd s'exécute comme démon en tant que PID 1.

    Les taches de systemd sont organisées en tant qu'unités. Les unités les plus courantes sont les services (.services), les points de montage (.mount), les périphériques (.device), les sockets (.socket) ou les minuteurs (.timer). Par exemple, le démarrage du démon shell sécurisé est effectué par l'unité ssh.service.

    Systemd place chaque service dans un groupe de contrôle (cgroup) dédié au service. Les noyaux modernes prennent en charge l'isolation des processus et l'allocation des ressources en fonction des groupes de contrôle.

    Les cibles (targets) sont des groupes d'unités. Les cibles appellent les unités pour assembler le système. Par exemple, graphical.target appelle toutes les unités nécessaires pour démarrer un poste de travail avec une interface utilisateur graphique. Les cibles peuvent se superposer ou dépendre d'autres cibles. Au démarrage, systemd active la cible default.target qui est un alias pour une autre cible telle que graphic.target.

    Systemd crée et gère les sockets utilisés pour la communication entre les composants du système. Par exemple, il crée d'abord le socket /dev/log puis démarre le démon syslog. Cette approche présente deux avantages. Premièrement, les processus communiquant avec syslog via /dev/log peuvent être démarrés en parallèle. Deuxièmement, les services écrasés peuvent être redémarrés sans que les processus qui communiquent via les sockets avec eux perdent leur connexion. Le noyau mettra la communication en mémoire tampon pendant que le processus redémarre.

    https://wiki.debian.org/fr/systemd


    L'arborescence du dossier : /run systemd/units

     mia@mia-PC5:/run/systemd/units$ ls -la
     total 0
     drwxr-xr-x 2 root root 1620 avril 11 09:11 .
     drwxr-xr-x 21 root root 520 avril 11 09:45 ..
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:accounts-daemon.service -> 6d2ea96b1f27433e81be21d6c6fbfcd2
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:acpid.service -> 53a16a19b5ec47e2bc6e7c4084bf4b83
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:alsa-restore.service -> 8fac3028c3834a8c8ccfa76d538751dd
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:apparmor.service -> 866e469a9a6e4e69bd9e94016e3e15e7
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:apport.service -> 37f0508cf60741898969c13a444dafce
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:avahi-daemon.service -> 9cee8a9008644240b101b32f37a83789
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:blk-availability.service -> 1e5253742d2847229ed46d9a5fb3f145
     lrwxrwxrwx 1 root root 32 avril 10 14:07 invocation:clamav-freshclam.service -> e3768d20e4c64f3995cbd11a6ccb7f35
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:colord.service -> 1d1a2845635a4f47bbae4edf009dc0e1
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:console-setup.service -> f7a18c436ef64ab8b296304afaf986b7
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:cron.service -> 25f271bce59447c2a552e5e996a2b851
     lrwxrwxrwx 1 root root 32 avril 11 09:04 invocation:cups-browsed.service -> e79a0bffd4834f2e8f3e51c089ba5878
     lrwxrwxrwx 1 root root 32 avril 11 09:04 invocation:cups.service -> 37d732e2735948b5bb6b368dccc204c1
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:dbus.service -> 8e62ff9080d04018b3fddd739b56a7ff
     lrwxrwxrwx 1 root root 32 avril 10 13:52 'invocation:dev-disk-by\x2duuid-512283d8\x2d9d8c\x2d40c5\x2d975b\x2d52dbcd0fcd94.swap' -> 2cf4edeca6774db3bb8545c0d004dbf8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:dev-hugepages.mount -> 446583dbec484582b8de62cdd123fa84
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:dev-mqueue.mount -> 123aa14d7b69480cb3551d608a2deeb8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:finalrd.service -> 4f0982d425264111b45e5e9afee00e61
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:geoclue.service -> 405c3220bbc44bf6b1e6429a4db5932e
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:getty@tty1.service -> ad047b5ab5454ccdba8ee1051ad37061
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:grub-common.service -> 7894b622e97249e79ade7af1f6e94a45
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:hddtemp.service -> 32e8a29b64d247e3947366c1acf92002
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:home.mount -> e8857f994d1f4a2a8e3e3859ee788a82
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:irqbalance.service -> 16fc9d346d2a445abff4c0857feef351
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:kerneloops.service -> 6846b296d6a1479c95a0f30c29890e13
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:keyboard-setup.service -> 7266ff2550da4a8e92c011267af55399
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:kmod-static-nodes.service -> 420ce5ff733340d2949cff41f6893eb8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:lightdm.service -> 397d61e5cce64708af98242ffe0db082
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:lm-sensors.service -> 10b872ccbd644677baa6c39ea5587a36
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:lvm2-lvmetad.service -> d723b684c6294064a147359f640462dd
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:lvm2-monitor.service -> 202c51f161d44751a14a5c108c75e442
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:mnt-grsync.mount -> 6fb03b1a3fda4245a6569cf01b9ba480
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:mnt-VMs.mount -> 27023740922b4c3cb1ab4908d57c52b8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:networkd-dispatcher.service -> b7455fda29cc475784c1394ee85a5939
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:networking.service -> 6acb1ce3b38a4668aac904f797033f18
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:NetworkManager.service -> 557014fcbd924ba78e8147f30986b84d
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:NetworkManager-wait-online.service -> a7277ea41a7f42dfb7d300fba878f35d
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:nvidia-persistenced.service -> 32f01873a7964f42a718e44f8f6960aa
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:openvpn.service -> 8641ec323f5e4ab8a057d2f65e7101fd
     lrwxrwxrwx 1 root root 32 avril 10 14:03 invocation:packagekit.service -> acc721c068aa45c980b30afaa84375e4
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:polkit.service -> 0d88b5fa0c3447939772abf20e94b776
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:postfix.service -> 14e3eebd15444c7a879d6676df7d5c33
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:postfix@-.service -> 3f529d77c0794894b28d5b5e4ebcfc19
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:qemu-kvm.service -> 42eb869aa0324395a5e44df83d06c7a9
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:rsyslog.service -> 91fa279be76942428d5d559e456ae287
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:rtkit-daemon.service -> d96b3d122dc34c7bb2e4654c59eb90cc
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:session-c1.scope -> 8f0b66fa1e484f989961c5a89c09b460
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:setvtrgb.service -> de7556c211274cee95cee5ec0c914f00
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:smartd.service -> c3e816a38f8a4840a1b83964897796f0
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:speech-dispatcher.service -> 71682a3848394e34b63bf97f71065b3e
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:ssh.service -> 7e13b9ac4ddc4f67b92b84f8bf3d53e3
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:sys-fs-fuse-connections.mount -> 85d300ab45c347139b3b36679b85aff5
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:sys-kernel-config.mount -> 6323a98cb1544d93b73ca573d14d061d
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:sys-kernel-debug.mount -> 0c933c03c001482699889ff42db83708
     lrwxrwxrwx 1 root root 32 avril 10 13:52 'invocation:systemd-fsck@dev-disk-by\x2duuid-e9b11471\x2dc256\x2d4f9c\x2db21f\x2db394c6f22f7a.service' -> e8bce2e4cd334b769b9003768da22fda
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-journald.service -> 30fda9739c2a40319dbc6e0cd5d23616
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-journal-flush.service -> 493cf847d5954b9d81bef02bf8b917bf
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-logind.service -> 801402035470418da2fea626d15bfe16
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-modules-load.service -> a5a4b82a48cd4885a3a17de120115b53
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-random-seed.service -> c9d1101274d94b81bb9687a62a7c5209
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-remount-fs.service -> afa254fb92334443bee58b19f62e260f
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-resolved.service -> bc34f87cf6864202a367c9ac97594a4e
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-sysctl.service -> 4e1d5849577a40f98a9a936d4e1995c0
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-timesyncd.service -> bb78b1ecbd644b51979c79e5a7822d3f
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-tmpfiles-setup-dev.service -> 63bc70f364eb4e9ab663571c134a818b
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-tmpfiles-setup.service -> 7cffb1512dd94076a34a64e9cd5fa7a2
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-udevd.service -> 4dbda7b8b56a428d93f2c9aa52fd4bd8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-udev-trigger.service -> c6e23bf0f971469c84dcf3864abbd9bd
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-update-utmp.service -> 86cdc5d8d82846808e56afd6fc7fd17a
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:systemd-user-sessions.service -> 89894a9cc9464fd1ae8b2a7ef5c8bb57
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:thermald.service -> cbed0f90eb1f43d4b8c4b9b9a0b7db57
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:ubuntu-system-adjustments.service -> b7d000c4ed01498594ab6e31b6e9277f
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:udisks2.service -> 8e99845df9734e16a299a6592335e80d
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:ufw.service -> 8e4ce411ecbd40a5a1fb5e4d5a94b5f8
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:upower.service -> bbb23b97c95743f5ab2016e2c0313311
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:user@1000.service -> d47c7bd736a548b28d027fc093ddd501
     lrwxrwxrwx 1 root root 32 avril 10 13:53 invocation:uuidd.service -> a0048b4b028f47ed8c982f83fed9ce15
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:virtualbox.service -> d251f65c1f3341089ac06108ce46fe0e
     lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:wpa_supplicant.service -> 51decb4502cd4092a0a39913687eb20b
     mia@mia-PC5:/run/systemd/units$