Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:redhat:rh124:l111 [2024/09/26 11:50] – created adminelearning:workbooks:redhat:rh124:l111 [2024/09/26 13:19] (Version actuelle) admin
Ligne 5: Ligne 5:
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======RH12412 - Gestion du Démarrage et de l'Arrêt du Système======+======RH12412 - Gestion des Services et des Démons======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **RH12412 - Gestion du Démarrage et de l'Arrêt du Système**+  * **RH12412 - Gestion des Services et des Démons**
     * Contenu du Module     * Contenu du Module
-    * Présentation 
-    * BIOS, EFI et OpenFirmware 
-      * Systèmes à base du BIOS 
-        * Charger de Démarrage 
-      * Systèmes à base de l'EFI 
-      * Autres Systèmes 
-    * Gestionnaire d'amorçage 
-      * GRUB 2 
-        * Le fichier /boot/grub/device.map 
-        * Le fichier /etc/default/grub 
-        * Les fichiers du répertoire /etc/grub.d 
-        * Configurer l'Authentification 
-        * Modifier la Configuration de GRUB 2 en Ligne de Commande 
-      * Chargeurs de Démarrages Alternatifs 
-        * Systemd-boot 
-        * U-boot 
-        * Le Projet Syslinux 
-          * SYSLINUX 
-          * EXTLINUX 
-          * ISOLINUX 
-          * PXELINUX 
-        * Isodhpfx 
-    * Initramfs 
-      * Examiner l'image existante 
-      * Le script init 
-      * Consulter le contenu d'un fichier dans initramfs 
-    * Processus de Démarrage du Noyau Linux 
-    * Processus Init 
     * Systemd     * Systemd
       * LAB #1 - La Commande systemctl       * LAB #1 - La Commande systemctl
Ligne 52: Ligne 24:
         * 5.2 - Gestion d'Instances Multiples         * 5.2 - Gestion d'Instances Multiples
         * 5.3 - Interdire la Modification du Statut d'un Service         * 5.3 - Interdire la Modification du Statut d'un Service
-    * Arrêt Système du Système 
-      * La Commande shutdown 
-      * La Commande reboot 
-      * La Commande halt 
-      * La Commande poweroff 
- 
-=====Présentation===== 
- 
-Le processus de démarrage de Linux peut être résumé en trois étapes majeurs : 
- 
-  * Le **firmware** ou **micrologiciel** démarre en effectuant un test rapide du matériel, appelé un **Power-On Self Test** ou **POST**, puis recherche le **Charger de Démarrage** (//Bootloader//) à exécuter à partir d'un support bootable, 
-  * Le Charger de Démarrage est exécuté et il détermine quel noyau Linux à charger, 
-  * Le noyau se charge en mémoire et commence à exécuter en arrière plan les programmes nécessaires au fonctionnement du système. 
- 
-<WRAP center round tip 60%> 
-**A retenir** : Il est possible de consulter le défilement des messages lors du démarrage en appuyant sur la touche <key>Echap</key> ou simultanément sur les touches <key>Ctrl</key>+<key>Alt</key>+<key>F1</key>. En sachant que la liste des messages se défilent rapidement, il est possible de les consulter **après** le démarrage du système à l'aide de la commande **dmesg** qui lit les derniers messages contenu dans le **Kernel Ring Buffer**. Ces messages sont aussi copiés dans le fichier **/var/log/boot.log**. 
-</WRAP> 
- 
-Cette description simpliste résume cependant un processus bien plus compliqué que ce cours va détailler. 
- 
-=====BIOS, EFI et OpenFirmware===== 
- 
-====Systèmes à base du BIOS==== 
- 
-Au démarrage d'un système à base d'un processeur x86 ou x86-64, le premier programme exécuté a été traditionnellement le BIOS. Le BIOS a pour fonction de : 
- 
-  * Tester les composants et les circuits, 
-  * Faire appel au BIOS de la carte graphique pour initialiser le système d'affichage, 
-  * Détecter les périphériques de stockage, 
-  * Lancer le **Charger de Démarrage** du système d'exploitation en utilisant le **bootstrap loader**. 
- 
-===Chargeur de Démarrage=== 
- 
-La première partie du Chargeur de Démarrage est en règle générale placé dans le MBR du disque. Le format du MBR est le suivant : 
- 
-  * 446 octets pour le Charger de Démarrage, 
-  * 64 octets pour la table de partitions, soit 16 octets par partition décrite, 
-  * 2 octets ayant une valeur fixe en hexadécimale de **AA55**. 
- 
-====Systèmes à base de l'EFI==== 
- 
-Depuis 2011, le BIOS est en train d'être remplacé par l'utilisation de l'**[[http://fr.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface|UEFI]]** (**U**nified **E**xtensible **F**irmware **I**nterface ou //Interface micrologicielle extensible unifiée//) issue du développement de l'EFI conçue par Intel pour les processeurs Itanium..  
- 
-Sous EFI la première partie du gestionnaire de démarrage est un fichier ayant une extension .efi se trouvant dans un sous-répertoire au nom du système d'exploitation à lancer dans une partition appelée **EFI System Partition** ou **ESP**. Cette partition est normalement montée à **/boot/efi** sous Linux. 
- 
-Pour que EFI fonctionne, le micrologiciel (**firmware**) d'EFI doit avoir connaissance de chaque système d'exploitation à démarrer. 
- 
-<WRAP center round tip 60%> 
-**A retenir** : Sous Linux c'est l'application **efibootmgr** qui permet de créer et de supprimer des entrées ainsi que de modifier l'ordre de démarrage. 
-</WRAP> 
- 
-<WRAP center round important 60%> 
-**Important** : L'UEFI gère les **SSD** (//Solid State Drives//) qui utilisent le standard **NVMe** (//Non-Volatile Memory Express//). Linux supporte les SSD depuis le noyau 3.3. 
-</WRAP> 
- 
-====Autres Systèmes==== 
- 
-Les systèmes utilisant des processeurs autre qu'un x86 ou x86-64 utilisent un logiciel tel **[[http://fr.wikipedia.org/wiki/Open_Firmware|OpenFirmware]]**. 
- 
-=====Gestionnaires de Démarrage===== 
- 
-====GRUB 2==== 
- 
-GRUB 2 est une ré-écriture complète de GRUB Legacy. Il apporte des améliorations, notamment GRUB 2 sait utiliser des partitions RAID et LVM. 
- 
-Le lancement de GRUB 2 se fait en trois étapes : 
- 
-  * Etape 1 : Le **boot.img**, stocké dans les 512 premiers octets du secteur 0 avec la table des partitions, est lancé. Son seul but est de lancer l'étape 1.5, 
-  * Etape 1.5 : Le **core.img**, d'une taille approximative de 25 Ko et stocké dans les secteurs 1 à 62, est lance. Son travail est de charger des pilotes qui supportent de multiples systèmes de fichiers puis de lancer l'étape 2 dans un des systèmes de fichiers, 
-  * Etape 2 : Contenu dans le répertoire **/boot/grub2/**, il lance le menu pour que l'utilisateur puisse choisir les système d'exploitation à lancer. 
- 
-Dans le cas où le Charger de Démarrage **GRUB 2** n'est pas installé, il convient de saisir la commande suivante : 
- 
-  # grub2-install /dev/périphérique [Entrée] 
- 
-où **périphérique** est le nom du périphérique ou l'étape 1 de GRUB2 doit s'installer dans le MBR.  
- 
-**GRUB 2** lit ses entrées de menus à partir du fichier **/boot/grub2/grub.cfg**. Pour visualiser ce fichier, il convient de saisir la commande suivante : 
- 
-<code> 
-[root@centos8 ~]# cat /boot/grub2/grub.cfg  
-# 
-# DO NOT EDIT THIS FILE 
-# 
-# It is automatically generated by grub2-mkconfig using templates 
-# from /etc/grub.d and settings from /etc/default/grub 
-# 
- 
-### BEGIN /etc/grub.d/00_header ### 
-set pager=1 
- 
-if [ -f ${config_directory}/grubenv ]; then 
-  load_env -f ${config_directory}/grubenv 
-elif [ -s $prefix/grubenv ]; then 
-  load_env 
-fi 
-if [ "${next_entry}" ] ; then 
-   set default="${next_entry}" 
-   set next_entry= 
-   save_env next_entry 
-   set boot_once=true 
-else 
-   set default="${saved_entry}" 
-fi 
- 
-if [ x"${feature_menuentry_id}" = xy ]; then 
-  menuentry_id_option="--id" 
-else 
-  menuentry_id_option="" 
-fi 
- 
-export menuentry_id_option 
- 
-if [ "${prev_saved_entry}" ]; then 
-  set saved_entry="${prev_saved_entry}" 
-  save_env saved_entry 
-  set prev_saved_entry= 
-  save_env prev_saved_entry 
-  set boot_once=true 
-fi 
- 
-function savedefault { 
-  if [ -z "${boot_once}" ]; then 
-    saved_entry="${chosen}" 
-    save_env saved_entry 
-  fi 
-} 
- 
-function load_video { 
-  if [ x$feature_all_video_module = xy ]; then 
-    insmod all_video 
-  else 
-    insmod efi_gop 
-    insmod efi_uga 
-    insmod ieee1275_fb 
-    insmod vbe 
-    insmod vga 
-    insmod video_bochs 
-    insmod video_cirrus 
-  fi 
-} 
- 
-terminal_output console 
-if [ x$feature_timeout_style = xy ] ; then 
-  set timeout_style=menu 
-  set timeout=5 
-# Fallback normal timeout code in case the timeout_style feature is 
-# unavailable. 
-else 
-  set timeout=5 
-fi 
-### END /etc/grub.d/00_header ### 
- 
-### BEGIN /etc/grub.d/00_tuned ### 
-set tuned_params="" 
-set tuned_initrd="" 
-### END /etc/grub.d/00_tuned ### 
- 
-### BEGIN /etc/grub.d/01_menu_auto_hide ### 
-if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then 
-  set last_boot_ok=1 
-else 
-  set last_boot_ok=0 
-fi 
- 
-# Reset boot_indeterminate after a successful boot 
-if [ "${boot_success}" = "1" ] ; then 
-  set boot_indeterminate=0 
-# Avoid boot_indeterminate causing the menu to be hidden more then once 
-elif [ "${boot_indeterminate}" = "1" ]; then 
-  set boot_indeterminate=2 
-fi 
-set boot_success=0 
-save_env boot_success boot_indeterminate 
- 
-if [ x$feature_timeout_style = xy ] ; then 
-  if [ "${menu_show_once}" ]; then 
-    unset menu_show_once 
-    save_env menu_show_once 
-    set timeout_style=menu 
-    set timeout=60 
-  elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then 
-    set orig_timeout_style=${timeout_style} 
-    set orig_timeout=${timeout} 
-    if [ "${fastboot}" = "1" ]; then 
-      # timeout_style=menu + timeout=0 avoids the countdown code keypress check 
-      set timeout_style=menu 
-      set timeout=0 
-    else 
-      set timeout_style=hidden 
-      set timeout=1 
-    fi 
-  fi 
-fi 
-### END /etc/grub.d/01_menu_auto_hide ### 
- 
-### BEGIN /etc/grub.d/01_users ### 
-if [ -f ${prefix}/user.cfg ]; then 
-  source ${prefix}/user.cfg 
-  if [ -n "${GRUB2_PASSWORD}" ]; then 
-    set superusers="root" 
-    export superusers 
-    password_pbkdf2 root ${GRUB2_PASSWORD} 
-  fi 
-fi 
-### END /etc/grub.d/01_users ### 
- 
-### BEGIN /etc/grub.d/10_linux ### 
-insmod part_msdos 
-insmod ext2 
-set root='hd0,msdos1' 
-if [ x$feature_platform_search_hint = xy ]; then 
-  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  2ae4c035-9244-458c-82c5-a49ae169cdb6 
-else 
-  search --no-floppy --fs-uuid --set=root 2ae4c035-9244-458c-82c5-a49ae169cdb6 
-fi 
-insmod part_msdos 
-insmod ext2 
-set boot='hd0,msdos1' 
-if [ x$feature_platform_search_hint = xy ]; then 
-  search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  2ae4c035-9244-458c-82c5-a49ae169cdb6 
-else 
-  search --no-floppy --fs-uuid --set=boot 2ae4c035-9244-458c-82c5-a49ae169cdb6 
-fi 
- 
-# This section was generated by a script. Do not modify the generated file - all changes 
-# will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files. 
-# 
-# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and 
-# populates the boot menu. Please refer to the Boot Loader Specification documentation 
-# for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/. 
- 
-set default_kernelopts="root=UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c ro crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet " 
- 
-insmod blscfg 
-blscfg 
-### END /etc/grub.d/10_linux ### 
- 
-### BEGIN /etc/grub.d/20_linux_xen ### 
-### END /etc/grub.d/20_linux_xen ### 
- 
-### BEGIN /etc/grub.d/20_ppc_terminfo ### 
-### END /etc/grub.d/20_ppc_terminfo ### 
- 
-### BEGIN /etc/grub.d/30_os-prober ### 
-### END /etc/grub.d/30_os-prober ### 
- 
-### BEGIN /etc/grub.d/30_uefi-firmware ### 
-### END /etc/grub.d/30_uefi-firmware ### 
- 
-### BEGIN /etc/grub.d/40_custom ### 
-# This file provides an easy way to add custom menu entries.  Simply type the 
-# menu entries you want to add after this comment.  Be careful not to change 
-# the 'exec tail' line above. 
-### END /etc/grub.d/40_custom ### 
- 
-### BEGIN /etc/grub.d/41_custom ### 
-if [ -f  ${config_directory}/custom.cfg ]; then 
-  source ${config_directory}/custom.cfg 
-elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then 
-  source $prefix/custom.cfg; 
-fi 
-### END /etc/grub.d/41_custom ### 
-</code> 
- 
-Notez que ce fichier ne doit pas être modifié manuellement. En effet, il est généré par la commande **grub2-mkconfig**. La commande grub2-mkconfig prend en argument l'emplacement du fichier grub.cfg, par exemple : 
- 
-  * grub2-mkconfig -o /boot/grub2/grub.cfg, ou 
-  * grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg 
- 
-Lors de l'exécution de la commande **grub2-mkconfig** plusieurs fichiers sont lus : 
- 
-===Le fichier /boot/grub2/device.map=== 
- 
-<code> 
-[root@centos8 ~]# cat /boot/grub2/device.map 
-# this device map was generated by anaconda 
-(hd0)      /dev/sda 
-(hd1)      /dev/sda 
-</code> 
- 
-===Le fichier /etc/default/grub=== 
- 
-Ce fichier contient la configuration par défaut des paramètres de GRUB 2 : 
- 
-<code> 
-[root@centos8 ~]# cat /etc/default/grub 
-GRUB_TIMEOUT=5 
-GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" 
-GRUB_DEFAULT=saved 
-GRUB_DISABLE_SUBMENU=true 
-GRUB_TERMINAL_OUTPUT="console" 
-GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet" 
-GRUB_DISABLE_RECOVERY="true" 
-GRUB_ENABLE_BLSCFG=true 
-</code> 
- 
-<WRAP center round important 60%> 
-**Important** : Notez que toute modification de ce fichier nécessite l'exécution de la commande **grub2-mkconfig** pour que les modifications soient prises en compte. 
-</WRAP> 
- 
-Dans ce fichier les directives sont : 
- 
-^  Directive  ^ Description ^ 
-| GRUB_TIMEOUT | Durée de l'affichage du menu avant le démarrage en utilisant la valeur de GRUB_DEFAULT | 
-| GRUB_DISTRIBUTOR | Ligne de commande qui génère le texte de l'entrée | 
-| GRUB_DEFAULT | Entrée du menu sélectionner par défaut | 
-| GRUB_DISABLE_SUBMENU | Active ou désactive les sous-menus de GRUB2 | 
-| GRUB_TERMINAL_OUTPUT | Spécifie le terminal par défaut | 
-| GRUB_CMDLINE_LINUX | Paramètres passés au noyau peu importe le type de démarrage | 
-| GRUB_DISABLE_RECOVERY | Active ou désactive la génération des entrées en mode **recovery** | 
-| GRUB_BLSCFG | Active ou désactive l'utilisation de la nouvelle spécification du gestionnaire de démarrage pour configurer celui-ci | 
- 
-===Les fichiers du répertoire /etc/grub.d=== 
- 
-Les fichiers de ce répertoire sont exécutés dans l'ordre alphanumérique et servent à construire les menus de GRUB 2 : 
- 
-<code> 
-[root@centos8 ~]#  ls -l /etc/grub.d 
-total 92 
--rwxr-xr-x. 1 root root  8958 Mar  2 15:51 00_header 
--rwxr-xr-x. 1 root root  1043 Jun 15  2020 00_tuned 
--rwxr-xr-x. 1 root root   232 Mar  2 15:51 01_users 
--rwxr-xr-x. 1 root root   832 Mar  2 15:51 08_fallback_counting 
--rwxr-xr-x. 1 root root 14088 Mar  2 15:51 10_linux 
--rwxr-xr-x. 1 root root   830 Mar  2 15:51 10_reset_boot_success 
--rwxr-xr-x. 1 root root   889 Mar  2 15:51 12_menu_auto_hide 
--rwxr-xr-x. 1 root root 11696 Mar  2 15:51 20_linux_xen 
--rwxr-xr-x. 1 root root  2559 Mar  2 15:51 20_ppc_terminfo 
--rwxr-xr-x. 1 root root 10670 Mar  2 15:51 30_os-prober 
--rwxr-xr-x. 1 root root  1412 Mar  2 15:51 30_uefi-firmware 
--rwxr-xr-x. 1 root root   214 Mar  2 15:51 40_custom 
--rwxr-xr-x. 1 root root   216 Mar  2 15:51 41_custom 
--rw-r--r--. 1 root root   483 Mar  2 15:51 README 
-</code> 
- 
-  * **Le fichier /etc/grub.d/10_Linux**, 
-    * Le fichier **10_Linux** contient des boucles pour rechercher des noyaux Linux, 
-  * **Le fichier /etc/grub.d/30_os-prober**, 
-    * Ce fichier recherche des éventuels systèmes d'exploitation autre que Linux, 
-  * **Les fichiers /etc/grub.d/40_custom et /etc/grub.d/41_custom**, 
-    * Ces deux fichiers sont fournis en tant que modèles à personnaliser. 
- 
-===Le Fichier /boot/grub2/grubenv=== 
- 
-Le fichier **/boot/grub2/grubenv** contient l'entrée du menu sauvegardée, référencée par la directive **GRUB_DEFAULT** du fichier **/etc/default/grub** : 
- 
-<code> 
-[root@centos8 ~]# cat /boot/grub2/grubenv 
-# GRUB Environment Block 
-saved_entry=de79af4f226d480fa7d3fec4cabbf97a-4.18.0-240.22.1.el8_3.x86_64 
-kernelopts=root=UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c ro crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet  
-boot_success=1 
-boot_indeterminate=0 
-########################################################################################################################################## 
-########################################################################################################################################## 
-########################################################################################################################################## 
-########################################################################################################################################## 
-########################################################################################################################################## 
-############################################################[root@centos8 ~]# 
-</code> 
- 
-===Modifier la Configuration de GRUB 2 en Ligne de Commande=== 
- 
-Lors du démarrage de GRUB 2, trois actions sont possibles à partir du menu : 
- 
-  * Lancer un système d'exploitation en le sélectionnant avec les flèches puis en appuyant sur la touche <key>Entrée</key>, 
-  * Lancer l'éditeur en appuyant sur la touche **e**, 
-  * Lancer l’interface de la ligne de commande GRUB en appuyant sur la touche **c**. 
- 
-En mode édition notez l'utilisation des touches suivantes : 
- 
-  * **flèches** : se déplacer dans l'écran. L'édition se fait en utilisant simplement les touches du clavier, 
-  * **Crtl-X** : démarrer avec la configuration modifiée, 
-  * **echap** : abandonner les modifications et retourner à l'interface menu de GRUB 2. 
- 
-====Chargeurs de Démarrages Alternatifs==== 
- 
-===Systemd-boot=== 
- 
-Un Chargeur de Démarrage étroitement lié à Systemd ( voir plus bas ), celui-ci connaît actuellement un gain de popularité. 
- 
-===U-boot=== 
- 
-Un Chargeur de Démarrage qui peut booter n'importe quelle image à partir de n'importe quel support. 
- 
-===Le Projet Syslinux=== 
- 
-==SYSLINUX== 
- 
-Un Chargeur de Démarrage pour les systèmes qui utilisent le système de fichier FAT. Par exemple le systèmes sur clefs USB. 
- 
-==EXTLINUX== 
- 
-Un Chargeur de Démarrage de petite taille qui sait booter des systèmes de fichier, EXT2, EXT3, EXT4 et BRTFS. 
- 
-==ISOLINUX== 
- 
-Un Chargeur de Démarrage pour booter des LiveCD et LiveDVD. Dans le cas d'ISOLINUX, deux fichiers sont necéssaires : 
- 
-  * **isolinux.bin** qui contient l'image du Chargeur de Démarrage et 
-  * **isolinux.cfg** qui contient les paramètres de configuration. 
- 
-==PXELINUX== 
-  
-Un Chargeur de Démarrage pour booter à partir d'un serveur réseau. Ce système utilise le standard **PXE** (//Pre-boot Execution Environment//) qui utilise : 
- 
-    * **DHCP** pour attribuer une adresse IP à la machine et 
-    * **BOOTP** pour charger l'image du Chargeur de Démarrage à partir du serveur en utilisant le protocol **TFTP** (//Trivial File Transfer Protocol//). L'image à télécharger doit s'appeler **/tftpboot/pxelinux.0** et chaque machine doit avoir un fichier de configuration dans le répertoire **/tftpboot/pxelinux.cfg/** 
- 
-===Isodhpfx=== 
- 
-Un Chargeur de Démarrage hybride, appelé **isodhpfx.bin**, qui peut être chargé sur un disque **ou** une clef USB. Le fichier isodhpfx.bin est créé avec le programme **xorriso**. 
- 
-====Initramfs==== 
- 
-Le fichier Initramfs //%%INITial Ram File System%%// est une archive au format cpio : 
- 
-<code> 
-[root@centos8 ~]# cp /boot/initramfs-4.18.0-240.22.1.el8_3.x86_64.img /tmp/custom 
-[root@centos8 ~]# cd /tmp 
-[root@centos8 tmp]# ls 
-cpio.list 
-custom 
-dateref 
-incremental.tar 
-mbr.save 
-systemd-private-9af7a2f7444849578f55b306bfd9f820-chronyd.service-iQiNzF 
-tblpart.save 
-test.cpio 
-test.print 
-test.tar 
-tmp.iso 
-vg0_backup 
- 
-[root@centos8 tmp]# mv custom custom.gz 
- 
-[root@centos8 tmp]# gunzip custom.gz 
- 
-[root@centos8 tmp]# mkdir initramfs 
- 
-[root@centos8 tmp]# cd initramfs 
- 
-[root@centos8 initramfs]# cpio -cid -I ../custom 
-216 blocks 
-[root@centos8 initramfs]# ls 
-bin  dev  etc  init  lib  lib64  proc  root  run  sbin  shutdown  sys  sysroot  tmp  usr  var 
-</code> 
- 
-===Examiner l'image existante=== 
- 
-Pour examiner une image initramfs archivée, il convient d'utiliser la commande **lsinitrd** : 
- 
-<code> 
-[root@centos8 tmp]# lsinitrd custom | more 
-Image: custom: 25M 
-======================================================================== 
-Early CPIO image 
-======================================================================== 
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 . 
--rw-r--r--   1 root     root            2 Feb 22 10:57 early_cpio 
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 kernel 
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 kernel/x86 
-drwxr-xr-x   2 root     root            0 Feb 22 10:57 kernel/x86/microcode 
--rw-r--r--   1 root     root       109568 Feb 22 10:57 kernel/x86/microcode/GenuineIntel.bin 
-======================================================================== 
-Version: dracut-049-95.git20200804.el8_3.4 
- 
-Arguments: -f --kver '4.18.0-240.22.1.el8_3.x86_64' 
- 
-dracut modules: 
-bash 
-systemd 
-systemd-initrd 
-nss-softokn 
-rngd 
-i18n 
-network-legacy 
-network 
-ifcfg 
-drm 
-plymouth 
-prefixdevname 
-kernel-modules 
-kernel-modules-extra 
-kernel-network-modules 
-resume 
-rootfs-block 
-terminfo 
-udev-rules 
-biosdevname 
-dracut-systemd 
-usrmount 
-base 
-fs-lib 
-memstrack 
-microcode_ctl-fw_dir_override 
-shutdown 
-======================================================================== 
-drwxr-xr-x  12 root     root            0 Feb 22 10:57 . 
-crw-r--r--   1 root     root       5,   1 Feb 22 10:57 dev/console 
-crw-r--r--   1 root     root       1,  11 Feb 22 10:57 dev/kmsg 
-crw-r--r--   1 root     root       1,   3 Feb 22 10:57 dev/null 
-crw-r--r--   1 root     root       1,   8 Feb 22 10:57 dev/random 
-crw-r--r--   1 root     root       1,   9 Feb 22 10:57 dev/urandom 
-lrwxrwxrwx   1 root     root            7 Feb 22 10:57 bin -> usr/bin 
-drwxr-xr-x   2 root     root            0 Feb 22 10:57 dev 
-drwxr-xr-x  11 root     root            0 Feb 22 10:57 etc 
--rw-r--r--   1 root     root           30 Nov 10  2020 etc/centos-release 
-drwxr-xr-x   2 root     root            0 Feb 22 10:57 etc/cmdline.d 
-drwxr-xr-x   2 root     root            0 Feb 22 10:57 etc/conf.d 
--rw-r--r--   1 root     root          124 Feb 22 10:57 etc/conf.d/systemd.conf 
---More-- 
-</code> 
- 
-===Le script init=== 
- 
-RHEL/CentOS 8 utilise le système de démarrage **systemd**. Pour cette raison le script init est un lien symbolique vers **/usr/lib/systemd/systemd** : 
- 
-<code> 
-[root@centos8 tmp]# lsinitrd custom | grep usr/lib/systemd/systemd | grep init 
-lrwxrwxrwx   1 root     root           23 Feb 22 10:57 init -> usr/lib/systemd/systemd 
-</code> 
- 
-===Consulter le contenu d'un fichier dans initramfs=== 
- 
-Pour consulter le contenu d'un fichier inclus dans l'initramfs, il convient d'utiliser la commande **lsinitrd** de la manière suivante : 
- 
-<code> 
-[root@centos8 tmp]# lsinitrd /boot/initramfs-$(uname -r).img  /etc/ld.so.conf 
-include ld.so.conf.d/*.conf 
-</code> 
- 
-====Processus de Démarrage du Noyau Linux==== 
- 
-Le processus de démarrage du Noyau Linux peut être divisé en 6 étapes : 
- 
-^ Etape ^ Description ^ 
-| Chargement, configuration et exécution du chargeur du noyau | Le fichier **bootsect.s** est chargé en mémoire par le BIOS. Une fois configuré celui-ci charge le reste du noyau en mémoire | 
-| Configuration des paramètres et bascule vers le mode 32 bits | Le fichier **boot.s** met en place un **[[http://fr.wikipedia.org/wiki/Interrupt_Descriptor_Table|IDT]]** (//Interrupt Descriptor Table//) temporaire et **[[http://fr.wikipedia.org/wiki/Global_Descriptor_Table|GDT]]** (//Global Descriptor Table//) temporaire et gère le basculement vers le mode 32 bits | 
-| Décompression du Noyau | Le fichier **head.s** décompresse le noyau | 
-| Initialisation du noyau et de la mémoire | Le fichier **head.s** crée un GDT et IDT définitif | 
-| Configuration du noyau | Le fichier **main.c** met en place les contraintes de mémoire et configure la mémoire virtuelle | 
-| Création du processus Init | Le fichier **main.c** crée le processus init | 
- 
-La fonction **init_post()** essaie ensuite d'exécuter un des processus suivant dans l'ordre : 
- 
-  * /sbin/init ==> /usr/sbin/init ==> /usr/lib/systemd/systemd 
-  * /etc/init 
-  * /bin/init 
-  * /bin/sh ==> /bin/bash ==> /usr/bin/bash 
- 
-Dans le cas d'un échec à ce stade le message **Kernel Panic** sera affiché. 
  
 =====Systemd===== =====Systemd=====
Ligne 642: Ligne 61:
  
 <code> <code>
-[root@centos8 ~]# ls -l /usr/lib/systemd/system/runlevel* +[root@redhat9 ~]# ls -l /usr/lib/systemd/system/runlevel* 
-lrwxrwxrwx. 1 root root 15 Apr  7 16:55 /usr/lib/systemd/system/runlevel0.target -> poweroff.target +lrwxrwxrwx. 1 root root 15 Jul 18 13:00 /usr/lib/systemd/system/runlevel0.target -> poweroff.target 
-lrwxrwxrwx. 1 root root 13 Apr  7 16:55 /usr/lib/systemd/system/runlevel1.target -> rescue.target +lrwxrwxrwx. 1 root root 13 Jul 18 13:00 /usr/lib/systemd/system/runlevel1.target -> rescue.target 
-lrwxrwxrwx. 1 root root 17 Apr  7 16:55 /usr/lib/systemd/system/runlevel2.target -> multi-user.target +lrwxrwxrwx. 1 root root 17 Jul 18 13:00 /usr/lib/systemd/system/runlevel2.target -> multi-user.target 
-lrwxrwxrwx. 1 root root 17 Apr  7 16:55 /usr/lib/systemd/system/runlevel3.target -> multi-user.target +lrwxrwxrwx. 1 root root 17 Jul 18 13:00 /usr/lib/systemd/system/runlevel3.target -> multi-user.target 
-lrwxrwxrwx. 1 root root 17 Apr  7 16:55 /usr/lib/systemd/system/runlevel4.target -> multi-user.target +lrwxrwxrwx. 1 root root 17 Jul 18 13:00 /usr/lib/systemd/system/runlevel4.target -> multi-user.target 
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/lib/systemd/system/runlevel5.target -> graphical.target +lrwxrwxrwx. 1 root root 16 Jul 18 13:00 /usr/lib/systemd/system/runlevel5.target -> graphical.target 
-lrwxrwxrwx. 1 root root 13 Apr  7 16:55 /usr/lib/systemd/system/runlevel6.target -> reboot.target+lrwxrwxrwx. 1 root root 13 Jul 18 13:00 /usr/lib/systemd/system/runlevel6.target -> reboot.target
  
 /usr/lib/systemd/system/runlevel1.target.wants: /usr/lib/systemd/system/runlevel1.target.wants:
Ligne 672: Ligne 91:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-units +[root@redhat9 ~]# systemctl list-units 
-UNIT                                                                                      LOAD   ACTIVE SUB       DESCRIPTION                                                                   +  UNIT                                                                                                     LOAD   ACTIVE SUB       DESCRIPTION                                > 
-proc-sys-fs-binfmt_misc.automount                                                         loaded active waiting   Arbitrary Executable File Formats File System Automount Point                 +  proc-sys-fs-binfmt_misc.automount                                                                        loaded active running   Arbitrary Executable File Formats File Syst> 
-sys-devices-pci0000:00-0000:00:01.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device       loaded active plugged   CD-ROM                                                                        +  sys-devices-pci0000:00-0000:00:01.1-ata2-host2-target2:0:0-2:0:0:0-block-sr0.device                      loaded active plugged   QEMU_DVD-ROM 
-sys-devices-pci0000:00-0000:00:03.0-net-enp0s3.device                                     loaded active plugged   82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)             +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged   QEMU_HARDDISK 
-sys-devices-pci0000:00-0000:00:05.0-sound-card0.device                                    loaded active plugged   82801AA AC'97 Audio Controller                                                +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged   QEMU_HARDDISK 
-sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda1.device  loaded active plugged   VBOX_HARDDISK                                                               +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda.device      loaded active plugged   QEMU_HARDDISK 
-sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda2.device  loaded active plugged   VBOX_HARDDISK                                                               +  sys-devices-pci0000:00-0000:00:12.0-virtio1-net-ens18.device                                             loaded active plugged   Virtio network device 
-sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda3.device  loaded active plugged   VBOX_HARDDISK 3                                                               +  sys-devices-platform-serial8250-tty-ttyS0.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0 
-sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda.device       loaded active plugged   VBOX_HARDDISK                                                                 +  sys-devices-platform-serial8250-tty-ttyS1.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device  loaded active plugged   VBOX_HARDDISK 1                                                               +  sys-devices-platform-serial8250-tty-ttyS2.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb10.device loaded active plugged   VBOX_HARDDISK 10                                                              +  sys-devices-platform-serial8250-tty-ttyS3.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb11.device loaded active plugged   VBOX_HARDDISK my_ext4                                                         +  sys-devices-virtual-block-dm\x2d0.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-0 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb12.device loaded active plugged   VBOX_HARDDISK 12                                                              +  sys-devices-virtual-block-dm\x2d1.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-1 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb2.device  loaded active plugged   VBOX_HARDDISK 2                                                               +  sys-devices-virtual-misc-rfkill.device                                                                   loaded active plugged   /sys/devices/virtual/misc/rfkill 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb3.device  loaded active plugged   VBOX_HARDDISK 3                                                               +  sys-module-configfs.device                                                                               loaded active plugged   /sys/module/configfs 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb4.device  loaded active plugged   VBOX_HARDDISK 4                                                               +  sys-module-fuse.device                                                                                   loaded active plugged   /sys/module/fuse 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb5.device  loaded active plugged   VBOX_HARDDISK 5                                                               +  sys-subsystem-net-devices-ens18.device                                                                   loaded active plugged   Virtio network device                      > 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb6.device  loaded active plugged   VBOX_HARDDISK 6                                                               +  -.mount                                                                                                  loaded active mounted   Root Mount 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb7.device  loaded active plugged   VBOX_HARDDISK 7                                                               +  boot.mount                                                                                               loaded active mounted   /boot 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb8.device  loaded active plugged   VBOX_HARDDISK 8                                                               +  dev-hugepages.mount                                                                                      loaded active mounted   Huge Pages File System 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb9.device  loaded active plugged   VBOX_HARDDISK 9                                                               +  dev-mqueue.mount                                                                                         loaded active mounted   POSIX Message Queue File System 
-sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb.device       loaded active plugged   VBOX_HARDDISK                                                                 +  proc-sys-fs-binfmt_misc.mount                                                                            loaded active mounted   Arbitrary Executable File Formats File Syst> 
-sys-devices-platform-serial8250-tty-ttyS0.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0                                    +  run-credentials-systemd\x2dsysctl.service.mount                                                          loaded active mounted   /run/credentials/systemd-sysctl.service 
-sys-devices-platform-serial8250-tty-ttyS1.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1                                    +  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                               loaded active mounted   /run/credentials/systemd-tmpfiles-setup.ser> 
-sys-devices-platform-serial8250-tty-ttyS2.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2                                    +  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                                        loaded active mounted   /run/credentials/systemd-tmpfiles-setup-dev> 
-sys-devices-platform-serial8250-tty-ttyS3.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3                                    +  run-user-1000.mount                                                                                      loaded active mounted   /run/user/1000 
-sys-devices-virtual-block-dm\x2d0.device                                                  loaded active plugged   /sys/devices/virtual/block/dm-0                                               +  run-user-42.mount                                                                                        loaded active mounted   /run/user/42 
-sys-devices-virtual-block-dm\x2d1.device                                                  loaded active plugged   /sys/devices/virtual/block/dm-1                                               +  sys-fs-fuse-connections.mount                                                                            loaded active mounted   FUSE Control File System 
-sys-devices-virtual-net-virbr0.device                                                     loaded active plugged   /sys/devices/virtual/net/virbr0                                               +  sys-kernel-config.mount                                                                                  loaded active mounted   Kernel Configuration File System 
-sys-devices-virtual-net-virbr0\x2dnic.device                                              loaded active plugged   /sys/devices/virtual/net/virbr0-nic                                           +  sys-kernel-debug-tracing.mount                                                                           loaded active mounted   /sys/kernel/debug/tracing 
-sys-module-configfs.device                                                                loaded active plugged   /sys/module/configfs                                                          +  sys-kernel-debug.mount                                                                                   loaded active mounted   Kernel Debug File System 
-sys-subsystem-net-devices-enp0s3.device                                                   loaded active plugged   82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)             +  sys-kernel-tracing.mount                                                                                 loaded active mounted   Kernel Trace File System                   > 
-sys-subsystem-net-devices-virbr0.device                                                   loaded active plugged   /sys/subsystem/net/devices/virbr0                                             +  cups.path                                                                                                loaded active running   CUPS Scheduler 
-sys-subsystem-net-devices-virbr0\x2dnic.device                                            loaded active plugged   /sys/subsystem/net/devices/virbr0-nic                                         +  systemd-ask-password-plymouth.path                                                                       loaded active waiting   Forward Password Requests to Plymouth Direc> 
--.mount                                                                                   loaded active mounted   Root Mount                                                                    +  systemd-ask-password-wall.path                                                                           loaded active waiting   Forward Password Requests to Wall Directory> 
-boot.mount                                                                                loaded active mounted   /boot                                                                         +  init.scope                                                                                               loaded active running   System and Service Manager 
-dev-hugepages.mount                                                                       loaded active mounted   Huge Pages File System                                                        +  session-4.scope                                                                                          loaded active running   Session 4 of User trainee 
-dev-mqueue.mount                                                                          loaded active mounted   POSIX Message Queue File System                                               +lines 1-37...skipping... 
-run-user-1000.mount                                                                       loaded active mounted   /run/user/1000                                                                +  UNIT                                                                                                     LOAD   ACTIVE SUB       DESCRIPTION                                                                   
-sys-kernel-config.mount                                                                   loaded active mounted   Kernel Configuration File System                                              +  proc-sys-fs-binfmt_misc.automount                                                                        loaded active running   Arbitrary Executable File Formats File System Automount Point                 
-sys-kernel-debug.mount                                                                    loaded active mounted   Kernel Debug File System                                                      +  sys-devices-pci0000:00-0000:00:01.1-ata2-host2-target2:0:0-2:0:0:0-block-sr0.device                      loaded active plugged   QEMU_DVD-ROM 
-sys-kernel-tracing.mount                                                                  loaded active mounted   /sys/kernel/tracing                                                           +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda1.device loaded active plugged   QEMU_HARDDISK 1 
-var-lib-nfs-rpc_pipefs.mount                                                              loaded active mounted   RPC Pipe File System                                                          +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda2.device loaded active plugged   QEMU_HARDDISK 2 
-cups.path                                                                                 loaded active running   CUPS Scheduler                                                                +  sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda.device      loaded active plugged   QEMU_HARDDISK 
-systemd-ask-password-plymouth.path                                                        loaded active waiting   Forward Password Requests to Plymouth Directory Watch                         +  sys-devices-pci0000:00-0000:00:12.0-virtio1-net-ens18.device                                             loaded active plugged   Virtio network device 
-systemd-ask-password-wall.path                                                            loaded active waiting   Forward Password Requests to Wall Directory Watch                             +  sys-devices-platform-serial8250-tty-ttyS0.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0 
-init.scope                                                                                loaded active running   System and Service Manager                                                    +  sys-devices-platform-serial8250-tty-ttyS1.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1 
-session-96.scope                                                                          loaded active running   Session 96 of user trainee                                                    +  sys-devices-platform-serial8250-tty-ttyS2.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2 
-atd.service                                                                               loaded active running   Job spooling tools                                                            +  sys-devices-platform-serial8250-tty-ttyS3.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3 
-auditd.service                                                                            loaded active running   Security Auditing Service                                                     +  sys-devices-virtual-block-dm\x2d0.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-0 
-avahi-daemon.service                                                                      loaded active running   Avahi mDNS/DNS-SD Stack                                                       +  sys-devices-virtual-block-dm\x2d1.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-1 
-chronyd.service                                                                           loaded active running   NTP client/server                                                             +  sys-devices-virtual-misc-rfkill.device                                                                   loaded active plugged   /sys/devices/virtual/misc/rfkill 
-crond.service                                                                             loaded active running   Command Scheduler                                                             +  sys-module-configfs.device                                                                               loaded active plugged   /sys/module/configfs 
-cups.service                                                                              loaded active running   CUPS Scheduler                                                                +  sys-module-fuse.device                                                                                   loaded active plugged   /sys/module/fuse 
-dbus.service                                                                              loaded active running   D-Bus System Message Bus                                                      +  sys-subsystem-net-devices-ens18.device                                                                   loaded active plugged   Virtio network device                                                         
-dracut-shutdown.service                                                                   loaded active exited    Restore /run/initramfs on shutdown                                            +  -.mount                                                                                                  loaded active mounted   Root Mount 
-firewalld.service                                                                         loaded active running   firewalld - dynamic firewall daemon                                           +  boot.mount                                                                                               loaded active mounted   /boot 
-lines 1-57+  dev-hugepages.mount                                                                                      loaded active mounted   Huge Pages File System 
 +  dev-mqueue.mount                                                                                         loaded active mounted   POSIX Message Queue File System 
 +  proc-sys-fs-binfmt_misc.mount                                                                            loaded active mounted   Arbitrary Executable File Formats File System 
 +  run-credentials-systemd\x2dsysctl.service.mount                                                          loaded active mounted   /run/credentials/systemd-sysctl.service 
 +  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                               loaded active mounted   /run/credentials/systemd-tmpfiles-setup.service 
 +  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                                        loaded active mounted   /run/credentials/systemd-tmpfiles-setup-dev.service 
 +  run-user-1000.mount                                                                                      loaded active mounted   /run/user/1000 
 +  run-user-42.mount                                                                                        loaded active mounted   /run/user/42 
 +  sys-fs-fuse-connections.mount                                                                            loaded active mounted   FUSE Control File System 
 +  sys-kernel-config.mount                                                                                  loaded active mounted   Kernel Configuration File System 
 +  sys-kernel-debug-tracing.mount                                                                           loaded active mounted   /sys/kernel/debug/tracing 
 +  sys-kernel-debug.mount                                                                                   loaded active mounted   Kernel Debug File System 
 +  sys-kernel-tracing.mount                                                                                 loaded active mounted   Kernel Trace File System                                                      
 +  cups.path                                                                                                loaded active running   CUPS Scheduler 
 +  systemd-ask-password-plymouth.path                                                                       loaded active waiting   Forward Password Requests to Plymouth Directory Watch 
 +  systemd-ask-password-wall.path                                                                           loaded active waiting   Forward Password Requests to Wall Directory Watch                             
 +  init.scope                                                                                               loaded active running   System and Service Manager 
 +  session-4.scope                                                                                          loaded active running   Session of User trainee 
 +  session-c1.scope                                                                                         loaded active running   Session c1 of User gdm                                                        
 +  accounts-daemon.service                                                                                  loaded active running   Accounts Service 
 +  atd.service                                                                                              loaded active running   Deferred execution scheduler 
 +  auditd.service                                                                                           loaded active running   Security Auditing Service 
 +  avahi-daemon.service                                                                                     loaded active running   Avahi mDNS/DNS-SD Stack 
 +  colord.service                                                                                           loaded active running   Manage, Install and Generate Color Profiles 
 +  crond.service                                                                                            loaded active running   Command Scheduler 
 +  cups.service                                                                                             loaded active running   CUPS Scheduler 
 +  dbus-broker.service                                                                                      loaded active running   D-Bus System Message Bus 
 +  dracut-shutdown.service                                                                                  loaded active exited    Restore /run/initramfs on shutdown 
 +  firewalld.service                                                                                        loaded active running   firewalld - dynamic firewall daemon 
 +  gdm.service                                                                                              loaded active running   GNOME Display Manager 
 +  irqbalance.service                                                                                       loaded active running   irqbalance daemon 
 +  iscsi.service                                                                                            loaded active exited    Login and scanning of iSCSI devices 
 +  kdump.service                                                                                            loaded active exited    Crash recovery kernel arming 
 +  kmod-static-nodes.service                                                                                loaded active exited    Create List of Static Device Nodes 
 +  libstoragemgmt.service                                                                                   loaded active running   libstoragemgmt plug-in server daemon 
 +  lvm2-monitor.service                                                                                     loaded active exited    Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling 
 +lines 1-55
 </code> </code>
  
Ligne 736: Ligne 191:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-units --all | grep inactive | more +[root@redhat9 ~]# systemctl list-units --all | grep inactive | more 
-● boot.automount                                                                                                 not-found inactive dead      boot.automount                                                                               +● boot.automount                                                                                                 not-found inactive dead      boot.automount 
-  proc-fs-nfsd.mount                                                                                             loaded    inactive dead      NFSD configuration filesystem                                                                +● home.mount                                                                                                     not-found inactive dead      home.mount 
-  proc-sys-fs-binfmt_misc.mount                                                                                  loaded    inactive dead      Arbitrary Executable File Formats File System                                                +● sysroot.mount                                                                                                  not-found inactive dead      sysroot.mount 
-  sys-fs-fuse-connections.mount                                                                                  loaded    inactive dead      FUSE Control File System                                                                     +  tmp.mount                                                                                                      loaded    inactive dead      Temporary Directory /tmp 
-● sysroot.mount                                                                                                  not-found inactive dead      sysroot.mount                                                                                +● var.mount                                                                                                      not-found inactive dead      var.mount 
-  tmp.mount                                                                                                      loaded    inactive dead      Temporary Directory (/tmp)                                                                   +  systemd-ask-password-console.path                                                                              loaded    inactive dead      Dispatch Password Requests to Console Directory Watch 
-  var-lib-machines.mount                                                                                         loaded    inactive dead      Virtual Machine and Container Storage                                                        +  alsa-restore.service                                                                                           loaded    inactive dead      Save/Restore Sound Card State 
-  systemd-ask-password-console.path                                                                              loaded    inactive dead      Dispatch Password Requests to Console Directory Watch                                        +  alsa-state.service                                                                                             loaded    inactive dead      Manage Sound Card State (restore and store) 
-● apparmor.service                                                                                               not-found inactive dead      apparmor.service                                                                             +● auto-cpufreq.service                                                                                           not-found inactive dead      auto-cpufreq.service 
-  auth-rpcgss-module.service                                                                                     loaded    inactive dead      Kernel Module supporting RPCSEC_GSS                                                          +● autofs.service                                                                                                 not-found inactive dead      autofs.service 
-  cpupower.service                                                                                               loaded    inactive dead      Configure CPU power related settings                                                         +  blk-availability.service                                                                                       loaded    inactive dead      Availability of block devices 
-● display-manager.service                                                                                        not-found inactive dead      display-manager.service                                                                      +  cpupower.service                                                                                               loaded    inactive dead      Configure CPU power related settings 
-  dm-event.service                                                                                               loaded    inactive dead      Device-mapper event daemon                                                                   +  dm-event.service                                                                                               loaded    inactive dead      Device-mapper event daemon 
-  dnf-makecache.service                                                                                          loaded    inactive dead      dnf makecache                                                                                +  dnf-makecache.service                                                                                          loaded    inactive dead      dnf makecache 
-  dracut-cmdline.service                                                                                         loaded    inactive dead      dracut cmdline hook                                                                          +  dracut-cmdline.service                                                                                         loaded    inactive dead      dracut cmdline hook 
-  dracut-initqueue.service                                                                                       loaded    inactive dead      dracut initqueue hook                                                                        +  dracut-initqueue.service                                                                                       loaded    inactive dead      dracut initqueue hook 
-  dracut-mount.service                                                                                           loaded    inactive dead      dracut mount hook                                                                            +  dracut-mount.service                                                                                           loaded    inactive dead      dracut mount hook 
-  dracut-pre-mount.service                                                                                       loaded    inactive dead      dracut pre-mount hook                                                                        +  dracut-pre-mount.service                                                                                       loaded    inactive dead      dracut pre-mount hook 
-  dracut-pre-pivot.service                                                                                       loaded    inactive dead      dracut pre-pivot and cleanup hook                                                            +  dracut-pre-pivot.service                                                                                       loaded    inactive dead      dracut pre-pivot and cleanup hook 
-  dracut-pre-trigger.service                                                                                     loaded    inactive dead      dracut pre-trigger hook                                                                      +  dracut-pre-trigger.service                                                                                     loaded    inactive dead      dracut pre-trigger hook 
-  dracut-pre-udev.service                                                                                        loaded    inactive dead      dracut pre-udev hook                                                                         +  dracut-pre-udev.service                                                                                        loaded    inactive dead      dracut pre-udev hook 
-  ebtables.service                                                                                               loaded    inactive dead      Ethernet Bridge Filtering tables                                                             +  dracut-shutdown-onfailure.service                                                                              loaded    inactive dead      Service executing upon dracut-shutdown failure to perform cleanup 
-  emergency.service                                                                                              loaded    inactive dead      Emergency Shell                                                                              +● ebtables.service                                                                                               not-found inactive dead      ebtables.service 
-  initrd-cleanup.service                                                                                         loaded    inactive dead      Cleaning Up and Shutting Down Daemons                                                        +  emergency.service                                                                                              loaded    inactive dead      Emergency Shell 
-  initrd-parse-etc.service                                                                                       loaded    inactive dead      Reload Configuration from the Real Root                                                      +● fcoe.service                                                                                                   not-found inactive dead      fcoe.service 
-  initrd-switch-root.service                                                                                     loaded    inactive dead      Switch Root                                                                                  +  getty@tty1.service                                                                                             loaded    inactive dead      Getty on tty1 
-  initrd-udevadm-cleanup-db.service                                                                              loaded    inactive dead      Cleanup udevd DB                                                                             +  initrd-cleanup.service                                                                                         loaded    inactive dead      Cleaning Up and Shutting Down Daemons 
-● ip6tables.service                                                                                              not-found inactive dead      ip6tables.service                                                                            +  initrd-parse-etc.service                                                                                       loaded    inactive dead      Mountpoints Configured in the Real Root 
-● ipset.service                                                                                                  not-found inactive dead      ipset.service                                                                                +  initrd-switch-root.service                                                                                     loaded    inactive dead      Switch Root 
-● iptables.service                                                                                               not-found inactive dead      iptables.service                                                                             +  initrd-udevadm-cleanup-db.service                                                                              loaded    inactive dead      Cleanup udev Database 
-  iscsi-onboot.service                                                                                           loaded    inactive dead      Special handling of early boot iSCSI sessions                                                +  insights-client-boot.service                                                                                   loaded    inactive dead      Run Insights Client at boot 
-  iscsi.service                                                                                                  loaded    inactive dead      Login and scanning of iSCSI devices                                                          +● ip6tables.service                                                                                              not-found inactive dead      ip6tables.service 
-  iscsid.service                                                                                                 loaded    inactive dead      Open-iSCSI                                                                                   +● ipset.service                                                                                                  not-found inactive dead      ipset.service 
-  iscsiuio.service                                                                                               loaded    inactive dead      iSCSI UserSpace I/O driver                                                                   +● iptables.service                                                                                               not-found inactive dead      iptables.service 
-  ldconfig.service                                                                                               loaded    inactive dead      Rebuild Dynamic Linker Cache                                                                 +  iscsi-init.service                                                                                             loaded    inactive dead      One time configuration for iscsi.service 
-  libvirt-guests.service                                                                                         loaded    inactive dead      Suspend/Resume Running libvirt Guests                                                        +  iscsi-onboot.service                                                                                           loaded    inactive dead      Special handling of early boot iSCSI sessions 
-  libvirtd.service                                                                                               loaded    inactive dead      Virtualization daemon                                                                        +  iscsi-shutdown.service                                                                                         loaded    inactive dead      Logout off all iSCSI sessions on shutdown 
-  loadmodules.service                                                                                            loaded    inactive dead      Load legacy module configuration                                                             +  iscsi-starter.service                                                                                          loaded    inactive dead      iscsi-starter.service 
-● lvm2-activation.service                                                                                        not-found inactive dead      lvm2-activation.service                                                                      +  iscsid.service                                                                                                 loaded    inactive dead      Open-iSCSI 
-  lvm2-lvmpolld.service                                                                                          loaded    inactive dead      LVM2 poll daemon                                                                             +  iscsiuio.service                                                                                               loaded    inactive dead      iSCSI UserSpace I/O driver 
-  mdmonitor.service                                                                                              loaded    inactive dead      Software RAID monitoring and management                                                      +  ldconfig.service                                                                                               loaded    inactive dead      Rebuild Dynamic Linker Cache 
-  microcode.service                                                                                              loaded    inactive dead      Load CPU microcode update                                                                    +  logrotate.service                                                                                              loaded    inactive dead      Rotate log files 
-● network.service                                                                                                not-found inactive dead      network.service                                                                              +  low-memory-monitor.service                                                                                     loaded    inactive dead      Low Memory Monitor 
-  nfs-blkmap.service                                                                                             loaded    inactive dead      pNFS block layout mapping daemon                                                             +● lvm2-activation-early.service                                                                                  not-found inactive dead      lvm2-activation-early.service 
-  nfs-convert.service                                                                                            loaded    inactive dead      Preprocess NFS configuration convertion                                                      +  lvm2-lvmpolld.service                                                                                          loaded    inactive dead      LVM2 poll daemon 
-  nfs-idmapd.service                                                                                             loaded    inactive dead      NFSv4 ID-name mapping service                                                                +  mdmonitor.service                                                                                              loaded    inactive dead      Software RAID monitoring and management 
-  nfs-mountd.service                                                                                             loaded    inactive dead      NFS Mount Daemon                                                                             +  microcode.service                                                                                              loaded    inactive dead      Load CPU microcode update 
-  nfs-server.service                                                                                             loaded    inactive dead      NFS server and services                                                                      +  mlocate-updatedb.service                                                                                       loaded    inactive dead      Update a database for mlocate 
-  nfs-utils.service                                                                                              loaded    inactive dead      NFS server and client services                                                               +  modprobe@configfs.service                                                                                      loaded    inactive dead      Load Kernel Module configfs 
-  nfsdcld.service                                                                                                loaded    inactive dead      NFSv4 Client Tracking Daemon                                                                 +  modprobe@drm.service                                                                                           loaded    inactive dead      Load Kernel Module drm 
-  nftables.service                                                                                               loaded    inactive dead      Netfilter Tables                                                                             +  modprobe@fuse.service                                                                                          loaded    inactive dead      Load Kernel Module fuse 
-● ntpd.service                                                                                                   not-found inactive dead      ntpd.service                                                                                 +  multipathd.service                                                                                             loaded    inactive dead      Device-Mapper Multipath Device Controller 
-● ntpdate.service                                                                                                not-found inactive dead      ntpdate.service                                                                              +● network.service                                                                                                not-found inactive dead      network.service 
-  plymouth-switch-root.service                                                                                   loaded    inactive dead      Plymouth switch root service                                                                 +  nftables.service                                                                                               loaded    inactive dead      Netfilter Tables 
-  rc-local.service                                                                                               loaded    inactive dead      /etc/rc.d/rc.local Compatibility                                                             +● nslcd.service                                                                                                  not-found inactive dead      nslcd.service
-  rescue.service                                                                                                 loaded    inactive dead      Rescue Shell                                                                                 +
-  rpc-gssd.service                                                                                               loaded    inactive dead      RPC security service for NFS client and server                                              +
 --More-- --More--
 +[q]
 </code> </code>
  
Ligne 800: Ligne 254:
  
 <code> <code>
-[root@centos8 ~]# systemctl status ntpd +[root@redhat9 ~]# systemctl status network 
-Unit ntpd.service could not be found.+Unit network.service could not be found.
 </code> </code>
  
Ligne 807: Ligne 261:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-unit-files | more +[root@redhat9 ~]# systemctl list-unit-files | more 
-UNIT FILE                                                              STATE     +UNIT FILE                                  STATE           PRESET 
-proc-sys-fs-binfmt_misc.automount                                      static    +proc-sys-fs-binfmt_misc.automount          static          - 
--.mount                                                                generated +-.mount                                    generated       - 
-boot.mount                                                             generated +boot.mount                                 generated       - 
-dev-hugepages.mount                                                    static    +dev-hugepages.mount                        static          - 
-dev-mqueue.mount                                                       static    +dev-mqueue.mount                           static          
-proc-fs-nfsd.mount                                                     static    +proc-sys-fs-binfmt_misc.mount              disabled        disabled 
-proc-sys-fs-binfmt_misc.mount                                          static    +run-vmblock\x2dfuse.mount                  disabled        disabled 
-sys-fs-fuse-connections.mount                                          static    +sys-fs-fuse-connections.mount              static          - 
-sys-kernel-config.mount                                                static    +sys-kernel-config.mount                    static          - 
-sys-kernel-debug.mount                                                 static    +sys-kernel-debug.mount                     static          - 
-tmp.mount                                                              disabled  +sys-kernel-tracing.mount                   static          - 
-var-lib-machines.mount                                                 static    +tmp.mount                                  disabled        disabled 
-var-lib-nfs-rpc_pipefs.mount                                           static    +cups.path                                  enabled         enabled 
-cups.path                                                              enabled   +insights-client-results.path               disabled        disabled 
-systemd-ask-password-console.path                                      static    +ostree-finalize-staged.path                disabled        disabled 
-systemd-ask-password-plymouth.path                                     static    +systemd-ask-password-console.path          static          - 
-systemd-ask-password-wall.path                                         static    +systemd-ask-password-plymouth.path         static          - 
-session-96.scope                                                       transient +systemd-ask-password-wall.path             static          - 
-arp-ethers.service                                                     disabled  +session-4.scope                            transient       - 
-atd.service                                                            enabled   +session-c1.scope                           transient       - 
-auditd.service                                                         enabled   +accounts-daemon.service                    enabled         enabled 
-auth-rpcgss-module.service                                             static    +alsa-restore.service                       static          - 
-autovt@.service                                                        enabled   +alsa-state.service                         static          - 
-avahi-daemon.service                                                   enabled   +arp-ethers.service                         disabled        disabled 
-blk-availability.service                                               disabled  +atd.service                                enabled         enabled 
-chrony-dnssrv@.service                                                 static    +auditd.service                             enabled         enabled 
-chrony-wait.service                                                    disabled  +autovt@.service                            alias           - 
-chronyd.service                                                        enabled   +avahi-daemon.service                       enabled         enabled 
-cockpit-motd.service                                                   static    +blk-availability.service                   disabled        disabled 
-cockpit-wsinstance-http-redirect.service                               static    +bluetooth.service                          enabled         enabled 
-cockpit-wsinstance-http.service                                        static    +bolt.service                               static          - 
-cockpit-wsinstance-https-factory@.service                              static    +brltty.service                             disabled        disabled 
-cockpit-wsinstance-https@.service                                      static    +canberra-system-bootup.service             disabled        disabled 
-cockpit.service                                                        static    +canberra-system-shutdown-reboot.service    disabled        disabled 
-console-getty.service                                                  disabled  +canberra-system-shutdown.service           disabled        disabled 
-container-getty@.service                                               static    +chrony-wait.service                        disabled        disabled 
-cpupower.service                                                       disabled  +chronyd-restricted.service                 disabled        disabled 
-crond.service                                                          enabled   +chronyd.service                            disabled        enabled 
-cups-browsed.service                                                   disabled  +cni-dhcp.service                           disabled        disabled 
-cups.service                                                           enabled   +cockpit-motd.service                       static          - 
-dbus-org.fedoraproject.FirewallD1.service                              enabled   +cockpit-wsinstance-http.service            static          - 
-dbus-org.freedesktop.Avahi.service                                     enabled   +cockpit-wsinstance-https-factory@.service  static          - 
-dbus-org.freedesktop.hostname1.service                                 static    +cockpit-wsinstance-https@.service          static          - 
-dbus-org.freedesktop.import1.service                                   static    +cockpit.service                            static          - 
-dbus-org.freedesktop.locale1.service                                   static    +colord.service                             static          - 
-dbus-org.freedesktop.login1.service                                    static    +configure-printer@.service                 static          - 
-dbus-org.freedesktop.machine1.service                                  static    +console-getty.service                      disabled        disabled 
-dbus-org.freedesktop.nm-dispatcher.service                             enabled   +container-getty@.service                   static          - 
-dbus-org.freedesktop.portable1.service                                 static    +cpupower.service                           disabled        disabled 
-dbus-org.freedesktop.timedate1.service                                 enabled   +crond.service                              enabled         enabled 
-dbus.service                                                           static    +cups-browsed.service                       disabled        disabled 
-debug-shell.service                                                    disabled  +cups.service                               enabled         enabled 
-dm-event.service                                                       static    +dbus-broker.service                        enabled         enabled 
-dnf-makecache.service                                                  static    +dbus-daemon.service                        disabled        disabled
-dnsmasq.service                                                        disabled  +
-dracut-cmdline.service                                                 static   +
 --More-- --More--
 +[q]
 </code> </code>
  
Ligne 871: Ligne 324:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-unit-files -t mount +[root@redhat9 ~]# systemctl list-unit-files -t mount 
-UNIT FILE                     STATE     +UNIT FILE                     STATE     PRESET   
--.mount                       generated +-.mount                       generated -        
-boot.mount                    generated +boot.mount                    generated -        
-dev-hugepages.mount           static    +dev-hugepages.mount           static           
-dev-mqueue.mount              static    +dev-mqueue.mount              static           
-proc-fs-nfsd.mount            static    +proc-sys-fs-binfmt_misc.mount disabled  disabled 
-proc-sys-fs-binfmt_misc.mount static    +run-vmblock\x2dfuse.mount     disabled  disabled 
-sys-fs-fuse-connections.mount static    +sys-fs-fuse-connections.mount static           
-sys-kernel-config.mount       static    +sys-kernel-config.mount       static           
-sys-kernel-debug.mount        static    +sys-kernel-debug.mount        static           
-tmp.mount                     disabled  +sys-kernel-tracing.mount      static           
-var-lib-machines.mount        static    +tmp.mount                     disabled  disabled
-var-lib-nfs-rpc_pipefs.mount  static   +
  
-12 unit files listed.+11 unit files listed.
 </code> </code>
  
Ligne 898: Ligne 350:
  
 <code> <code>
-[root@centos8 ~]# ls -l /lib/systemd/system-generators/systemd-fstab-generator +[root@redhat9 ~]# ls -l /lib/systemd/system-generators/systemd-fstab-generator 
--rwxr-xr-x. 1 root root 46096 Apr  7 16:56 /lib/systemd/system-generators/systemd-fstab-generator+-rwxr-xr-x. 1 root root 57696 Jul 18 13:01 /lib/systemd/system-generators/systemd-fstab-generator
 </code> </code>
  
Ligne 905: Ligne 357:
  
 <code> <code>
-[root@centos8 ~]# ls -l /lib/systemd/system-generators +[root@redhat9 ~]# ls -l /lib/systemd/system-generators 
-total 508 +total 396 
--rwxr-xr-x. 1 root root    504 Jan  4 11:25 kdump-dep-generator.sh +-rwxr-xr-x. 1 root root   541 Jul 24 06:08 kdump-dep-generator.sh 
--r-xr-xr-x. 1 root root 134976 Aug 17  2020 lvm2-activation-generator +-rwxr-xr-x. 1 root root 15832 May 17 18:27 ostree-system-generator 
--rwxr-xr-x. 1 root root  67792 Jul 20  2020 nfs-server-generator +lrwxrwxrwx. 1 root root    31 Aug  8 10:54 podman-system-generator -> ../../../libexec/podman/quadlet 
--rwxr-xr-x. 1 root root  38216 Jul 20  2020 rpc-pipefs-generator +-rwxr-xr-x. 1 root root  1005 Feb 19  2024 selinux-autorelabel-generator.sh 
--rwxr-xr-x. 1 root root    743 Apr 23  2020 selinux-autorelabel-generator.sh +-rwxr-xr-x. 1 root root 15624 Jul 18 13:01 systemd-bless-boot-generator 
--rwxr-xr-x. 1 root root  33504 Apr  7 16:56 systemd-cryptsetup-generator +-rwxr-xr-x. 1 root root 40920 Jul 18 13:01 systemd-cryptsetup-generator 
--rwxr-xr-x. 1 root root  16648 Apr  7 16:56 systemd-debug-generator +-rwxr-xr-x. 1 root root 24312 Jul 18 13:01 systemd-debug-generator 
--rwxr-xr-x. 1 root root  46096 Apr  7 16:56 systemd-fstab-generator +-rwxr-xr-x. 1 root root 57696 Jul 18 13:01 systemd-fstab-generator 
--rwxr-xr-x. 1 root root  17064 Apr  7 16:56 systemd-getty-generator +-rwxr-xr-x. 1 root root 24096 Jul 18 13:01 systemd-getty-generator 
--rwxr-xr-x. 1 root root  29432 Apr  7 16:56 systemd-gpt-auto-generator +-rwxr-xr-x. 1 root root 36496 Jul 18 13:01 systemd-gpt-auto-generator 
--rwxr-xr-x. 1 root root  12568 Apr  7 16:56 systemd-hibernate-resume-generator +-rwxr-xr-x. 1 root root 16096 Jul 18 13:01 systemd-hibernate-resume-generator 
--rwxr-xr-x. 1 root root  12368 Apr  7 16:56 systemd-rc-local-generator +-rwxr-xr-x. 1 root root 24240 Jul 18 13:01 systemd-integritysetup-generator 
--rwxr-xr-x. 1 root root  12408 Apr  7 16:56 systemd-system-update-generator +-rwxr-xr-x. 1 root root 15632 Jul 18 13:01 systemd-rc-local-generator 
--rwxr-xr-x. 1 root root  33544 Apr  7 16:56 systemd-sysv-generator +-rwxr-xr-x. 1 root root 24296 Jul 18 13:01 systemd-run-generator 
--rwxr-xr-x. 1 root root  17024 Apr  7 16:56 systemd-veritysetup-generator+-rwxr-xr-x. 1 root root 15824 Jul 18 13:01 systemd-system-update-generator 
 +-rwxr-xr-x. 1 root root 36424 Jul 18 13:01 systemd-sysv-generator 
 +-rwxr-xr-x. 1 root root 36872 Jul 18 13:01 systemd-veritysetup-generator
 </code> </code>
  
Ligne 927: Ligne 381:
  
 <code> <code>
-[root@centos8 ~]# systemctl --help +[root@redhat9 ~]# systemctl --help 
-systemctl [OPTIONS...] {COMMAND...+systemctl [OPTIONS...] COMMAND ...
  
-Query or send control commands to the systemd manager.+Query or send control commands to the system manager.
  
-  -h --help           Show this help +Unit Commands: 
-     --version        Show package version +  list-units [PATTERN...            List units currently in memory 
-     --system         Connect to system manager +  list-automounts [PATTERN...]        List automount units currently in memory, 
-     --user           Connect to user service manager +                                      ordered by path 
-  -H --host=[USER@]HOST +  list-sockets [PATTERN...]           List socket units currently in memory, 
-                      Operate on remote host +                                      ordered by address 
-  -M --machine=CONTAINER +  list-timers [PATTERN...]            List timer units currently in memory, 
-                      Operate on local container +                                      ordered by next elapse 
-  -t --type=TYPE      List units of a particular type +  is-active PATTERN...                Check whether units are active 
-     --state=STATE    List units with particular LOAD or SUB or ACTIVE state +  is-failed PATTERN...                Check whether units are failed 
-  -p --property=NAME  Show only properties by this name +  status [PATTERN...|PID...]          Show runtime status of one or more units 
-  -a --all            Show all properties/all units currently in memory, +  show [PATTERN...|JOB...]            Show properties of one or more 
-                      including dead/empty ones. To list all units installed on +                                      units/jobs or the manager 
-                      the system, use the 'list-unit-files' command instead+  cat PATTERN...                      Show files and drop-ins of specified units 
-     --failed         Same as --state=failed +  help PATTERN...|PID...              Show manual for one or more units 
-  -l --full           Don't ellipsize unit names on output +  list-dependencies [UNIT...]         Recursively show units which are required 
-  -r --recursive      Show unit list of host and local containers +                                      or wanted by the units or by which those 
-     --reverse        Show reverse dependencies with 'list-dependencies' +                                      units are required or wanted 
-     --job-mode=MODE  Specify how to deal with already queued jobs, when +  start UNIT...                       Start (activate) one or more units 
-                      queueing a new job +  stop UNIT...                        Stop (deactivate) one or more units 
-     --show-types     When showing sockets, explicitly show their type +  reload UNIT...                      Reload one or more units 
-     --value          When showing propertiesonly print the value +  restart UNIT...                     Start or restart one or more units 
-  ---ignore-inhibitors +  try-restart UNIT...                 Restart one or more units if active 
-                      When shutting down or sleepingignore inhibitors +  reload-or-restart UNIT...           Reload one or more units if possible, 
-     --kill-who=WHO   Who to send signal to +                                      otherwise start or restart 
-  -s --signal=SIGNAL  Which signal to send +  try-reload-or-restart UNIT...       If active, reload one or more units
-     --now            Start or stop unit in addition to enabling or disabling it +                                      if supported, otherwise restart 
-     --dry-run        Only print what would be done +  isolate UNIT                        Start one unit and stop all others 
-  -q --quiet          Suppress output +  kill UNIT...                        Send signal to processes of a unit 
-     --wait           For (re)start, wait until service stopped again +  clean UNIT...                       Clean runtime, cache, state, logs or 
-     --no-block       Do not wait until operation finished +                                      configuration of unit 
-     --no-wall        Don't send wall message before halt/power-off/reboot +  freeze PATTERN...                   Freeze execution of unit processes 
-     --no-reload      Don't reload daemon after en-/dis-abling unit files +  thaw PATTERN...                     Resume execution of a frozen unit 
-     --no-legend      Do not print a legend (column headers and hints) +  set-property UNIT PROPERTY=VALUE... Sets one or more properties of a unit 
-     --no-pager       Do not pipe output into a pager +  bind UNIT PATH [PATH]               Bind-mount a path from the host into a 
-     --no-ask-password +                                      unit's namespace 
-                      Do not ask for system passwords +  mount-image UNIT PATH [PATH [OPTS]] Mount an image from the host into a 
-     --global         Enable/disable/mask unit files globally +                                      unit's namespace 
-     --runtime        Enable/disable/mask unit files temporarily until next +  service-log-level SERVICE [LEVEL]   Get/set logging threshold for service 
-                      reboot +  service-log-target SERVICE [TARGET] Get/set logging target for service 
-  -f --force          When enabling unit files, override existing symlinks +  reset-failed [PATTERN...]           Reset failed state for all, one, or more 
-                      When shutting down, execute action immediately +                                      units 
-     --preset-mode=   Apply only enable, only disable, or all presets +Unit File Commands: 
-     --root=PATH      Enable/disable/mask unit files in the specified root +  list-unit-files [PATTERN...]        List installed unit files 
-                      directory +  enable [UNIT...|PATH...]            Enable one or more unit files 
-  -n --lines=INTEGER  Number of journal entries to show +  disable UNIT...                     Disable one or more unit files 
-  -o --output=STRING  Change journal output mode (short, short-precise, +  reenable UNIT...                    Reenable one or more unit files 
-                             short-iso, short-iso-precise, short-full, +  preset UNIT...                      Enable/disable one or more unit files 
-                             short-monotonic, short-unix, +                                      based on preset configuration 
-                             verbose, export, json, json-pretty, json-sse, cat) +  preset-all                          Enable/disable all unit files based on 
-     --firmware-setup Tell the firmware to show the setup menu on next boot +                                      preset configuration 
-     --plain          Print unit dependencies as a list instead of a tree +lines 1-55
- +
-lines 1-57+
 </code> </code>
  
Ligne 995: Ligne 447:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemdsystemunitdir+[root@redhat9 ~]# pkg-config systemd --variable=systemdsystemunitdir
 /usr/lib/systemd/system /usr/lib/systemd/system
 </code> </code>
  
 <code> <code>
-[root@centos8 ~]# ls -l /usr/lib/systemd/system | more +[root@redhat9 ~]# ls -l /usr/lib/systemd/system | more 
-total 1464 +total 1584 
--rw-r--r--. 1 root root  275 Apr 26  2020 arp-ethers.service +-rw-r--r--. 1 root root  729 Feb 24  2022 accounts-daemon.service 
--rw-r--r--. 1 root root  222 May 11  2019 atd.service +-rw-r--r--. 1 root root  480 Jan 16  2024 alsa-restore.service 
--rw-r--r--. 1 root root 1512 Apr 23  2020 auditd.service +-rw-r--r--. 1 root root  465 Jan 16  2024 alsa-state.service 
--rw-r--r--. 1 root root  628 Jul 20  2020 auth-rpcgss-module.service +-rw-r--r--. 1 root root  275 Aug 10  2021 arp-ethers.service 
-lrwxrwxrwx. 1 root root   14 Apr  7 16:55 autovt@.service -> getty@.service +-rw-r--r--. 1 root root  274 Apr  4  2022 atd.service 
--rw-r--r--. 1 root root 1044 Nov 16  2020 avahi-daemon.service +-rw-r--r--. 1 root root 1771 Nov  8  2023 auditd.service 
--rw-r--r--. 1 root root  870 Nov 16  2020 avahi-daemon.socket +lrwxrwxrwx. 1 root root   14 Jul 18 13:00 autovt@.service -> getty@.service 
--rw-r--r--. 1 root root  956 Apr  7 16:54 basic.target +-rw-r--r--. 1 root root 1044 Nov  8  2023 avahi-daemon.service 
-drwxr-xr-x. 2 root root    6 Apr  7 16:55 basic.target.wants +-rw-r--r--. 1 root root  870 Nov  8  2023 avahi-daemon.socket 
--r--r--r--. 1 root root  408 Aug 17  2020 blk-availability.service +-rw-r--r--. 1 root root  964 Jul 18 13:00 basic.target 
--rw-r--r--. 1 root root  419 Jun 22  2018 bluetooth.target +drwxr-xr-x. 2 root root    6 Jul 18 13:00 basic.target.wants 
--rw-r--r--. 1 root root  455 Apr  7 16:54 boot-complete.target +-r--r--r--. 1 root root  384 Feb  3  2024 blk-availability.service 
--rw-r--r--. 1 root root  209 Nov 19  2019 chrony-dnssrv@.service +-rw-r--r--. 1 root root  449 Oct 31  2022 blockdev@.target 
--rw-r--r--. 1 root root  138 Nov 19  2019 chrony-dnssrv@.timer +-rw-r--r--. 1 root root  707 Jun 14  2022 bluetooth.service 
--rw-r--r--. 1 root root  491 Nov 19  2019 chronyd.service +-rw-r--r--. 1 root root  435 Oct 31  2022 bluetooth.target 
--rw-r--r--. 1 root root  472 May 10  2019 chrony-wait.service +-rw-r--r--. 1 root root  642 Jan 16  2023 bolt.service 
--rw-r--r--. 1 root root  222 Aug 24  2020 cockpit-motd.service +-rw-r--r--. 1 root root  463 Oct 31  2022 boot-complete.target 
--rw-r--r--. 1 root root  835 Aug 24  2020 cockpit.service +-rw-r--r--. 1 root root  217 Aug  9  2021 brltty.service 
--rw-r--r--. 1 root root  373 Aug 24  2020 cockpit.socket +-rw-r--r--. 1 root root  491 Jul 13  2023 canberra-system-bootup.service 
--rw-r--r--. 1 root root  251 Aug 24  2020 cockpit-wsinstance-http-redirect.service +-rw-r--r--. 1 root root  509 Jul 13  2023 canberra-system-shutdown-reboot.service 
--rw-r--r--. 1 root root  233 Aug 24  2020 cockpit-wsinstance-http-redirect.socket +-rw-r--r--. 1 root root  466 Jul 13  2023 canberra-system-shutdown.service 
--rw-r--r--. 1 root root  221 Aug 24  2020 cockpit-wsinstance-http.service +-rw-r--r--. 1 root root 1811 Jan 23  2024 chronyd-restricted.service 
--rw-r--r--. 1 root root  165 Aug 24  2020 cockpit-wsinstance-https-factory@.service +-rw-r--r--. 1 root root 1468 Jan 23  2024 chronyd.service 
--rw-r--r--. 1 root root  244 Aug 24  2020 cockpit-wsinstance-https-factory.socket +-rw-r--r--. 1 root root 1082 Jan 23  2024 chrony-wait.service 
--rw-r--r--. 1 root root  215 Aug 24  2020 cockpit-wsinstance-http.socket +-rw-r--r--. 1 root root  277 Jul 23 09:37 cni-dhcp.service 
--rw-r--r--. 1 root root  264 Aug 24  2020 cockpit-wsinstance-https@.service +-rw-r--r--. 1 root root  302 Dec  4  2023 cni-dhcp.socket 
--rw-r--r--. 1 root root  478 Aug 24  2020 cockpit-wsinstance-https@.socket +-rw-r--r--. 1 root root  222 Apr  2 05:45 cockpit-motd.service 
--rw-r--r--. 1 root root 1082 Apr  7 16:55 console-getty.service +-rw-r--r--. 1 root root  720 Apr  2 05:45 cockpit.service 
--rw-r--r--. 1 root root 1263 Apr  7 16:55 container-getty@.service +-rw-r--r--. 1 root root  349 Apr  2 05:45 cockpit.socket 
--rw-r--r--. 1 root root  294 Apr  8 15:21 cpupower.service +-rw-r--r--. 1 root root  221 Apr  2 05:45 cockpit-wsinstance-http.service 
--rw-r--r--. 1 root root  356 Nov  8  2019 crond.service +-rw-r--r--. 1 root root  165 Apr  2 05:45 cockpit-wsinstance-https-factory@.service 
--rw-r--r--. 1 root root  465 Jun 22  2018 cryptsetup-pre.target +-rw-r--r--. 1 root root  244 Apr  2 05:45 cockpit-wsinstance-https-factory.socket 
--rw-r--r--. 1 root root  412 Jun 22  2018 cryptsetup.target +-rw-r--r--. 1 root root  215 Apr  2 05:45 cockpit-wsinstance-http.socket 
-lrwxrwxrwx. 1 root root   13 Apr  7 16:55 ctrl-alt-del.target -> reboot.target +-rw-r--r--. 1 root root  264 Apr  2 05:45 cockpit-wsinstance-https@.service 
--rw-r--r--. 1 root root  234 Oct   2017 cups-browsed.service +-rw-r--r--. 1 root root  478 Apr  2 05:45 cockpit-wsinstance-https@.socket 
--r--r--r--. 1 root root  142 Jun 15  2020 cups.path +-rw-r--r--. 1 root root  295 Aug   2021 colord.service 
--r--r--r--. 1 root root  248 Jun 15  2020 cups.service +-rw-r--r--. 1 root root  154 Aug 11  2021 configure-printer@.service 
--r--r--r--. 1 root root  136 Jun 15  2020 cups.socket +-rw-r--r--. 1 root root 1102 Jul 18 13:00 console-getty.service 
-lrwxrwxrwx. 1 root root   25 Apr  7 16:55 dbus-org.freedesktop.hostname1.service -> systemd-hostnamed.service +-rw-r--r--. 1 root root 1254 Jul 18 13:00 container-getty@.service 
-lrwxrwxrwx. 1 root root   23 Apr  7 16:55 dbus-org.freedesktop.import1.service -> systemd-importd.service +-rw-r--r--. 1 root root  294 Sep 13 18:49 cpupower.service 
-lrwxrwxrwx. 1 root root   23 Apr  7 16:55 dbus-org.freedesktop.locale1.service -> systemd-localed.service +-rw-r--r--. 1 root root  371 Nov 30  2023 crond.service 
-lrwxrwxrwx. 1 root root   22 Apr  7 16:55 dbus-org.freedesktop.login1.service -> systemd-logind.service +-rw-r--r--. 1 root root  473 Oct 31  2022 cryptsetup-pre.target 
-lrwxrwxrwx. 1 root root   24 Apr  7 16:55 dbus-org.freedesktop.machine1.service -> systemd-machined.service +-rw-r--r--. 1 root root  420 Oct 31  2022 cryptsetup.target 
-lrwxrwxrwx. 1 root root   25 Apr  7 16:55 dbus-org.freedesktop.portable1.service -> systemd-portabled.service +lrwxrwxrwx. 1 root root   13 Jul 18 13:00 ctrl-alt-del.target -> reboot.target 
-lrwxrwxrwx. 1 root root   25 Apr  7 16:55 dbus-org.freedesktop.timedate1.service -> systemd-timedated.service +-rw-r--r--. 1 root root  234 Jan   2021 cups-browsed.service 
--rw-r--r--. 1 root root  380 Apr  12:08 dbus.service +-rw-r--r--. 1 root root  142 Jun 19 11:00 cups.path 
--rw-r--r--. 1 root root  102 Apr  7 12:08 dbus.socket +-rw-r--r--. 1 root root  298 Jun 19 11:00 cups.service 
-drwxr-xr-x. 2 root root    6 Apr  7 16:55 dbus.target.wants +drwxr-xr-x. 2 root root   25 Sep 25 12:03 cups.service.d 
--rw-r--r--. 1 root root 1084 Apr  7 16:55 debug-shell.service +-rw-r--r--. 1 root root  148 Jun 19 11:00 cups.socket 
-lrwxrwxrwx. 1 root root   16 Apr  7 16:55 default.target -> graphical.target +-rw-r--r--. 1 root root  529 Aug 23  2022 dbus-broker.service 
-drwxr-xr-x. 2 root root    6 Apr  7 16:55 default.target.wants +-rw-r--r--. 1 root root  560 Jun 12  2023 dbus-daemon.service 
--rw-r--r--. 1 root root  750 Jun 22  2018 dev-hugepages.mount +lrwxrwxrwx. 1 root root   25 Jul 18 13:00 dbus-org.freedesktop.hostname1.service -> systemd-hostnamed.service 
--rw-r--r--. 1 root root  665 Jun 22  2018 dev-mqueue.mount +lrwxrwxrwx. 1 root root   23 Jul 18 13:00 dbus-org.freedesktop.locale1.service -> systemd-localed.service 
--r--r--r--. 1 root root  345 Aug 17  2020 dm-event.service +lrwxrwxrwx. 1 root root   22 Jul 18 13:00 dbus-org.freedesktop.login1.service -> systemd-logind.service
--r--r--r--. 1 root root  248 Aug 17  2020 dm-event.socket +
--rw-r--r--. 1 root root  457 Jun  2  2020 dnf-makecache.service+
 --More-- --More--
 +[q]
 </code> </code>
  
Ligne 1064: Ligne 515:
  
 <code> <code>
-[root@centos8 ~]# ls -l /run/systemd/system/+[root@redhat9 ~]# ls -l /run/systemd/system/
 total 0 total 0
 </code> </code>
Ligne 1071: Ligne 522:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemduserunitdir+[root@redhat9 ~]# pkg-config systemd --variable=systemduserunitdir
 /usr/lib/systemd/user /usr/lib/systemd/user
 </code> </code>
Ligne 1082: Ligne 533:
  
 <code> <code>
-[root@centos8 ~]# cat /usr/lib/systemd/system/sshd.service+[root@redhat9 ~]# cat /usr/lib/systemd/system/sshd.service
 [Unit] [Unit]
 Description=OpenSSH server daemon Description=OpenSSH server daemon
Ligne 1091: Ligne 542:
 [Service] [Service]
 Type=notify Type=notify
-EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config 
 EnvironmentFile=-/etc/sysconfig/sshd EnvironmentFile=-/etc/sysconfig/sshd
-ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY+ExecStart=/usr/sbin/sshd -D $OPTIONS
 ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
 KillMode=process KillMode=process
Ligne 1118: Ligne 568:
   * **Type=notify**,   * **Type=notify**,
     * Cette directive indique que le service informera Systemd quand son démarrage a terminé,     * Cette directive indique que le service informera Systemd quand son démarrage a terminé,
-  * **ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY**,+  * **ExecStart=/usr/sbin/sshd -D $OPTIONS**,
      * Cette directive définit l'exécutable à lancer,      * Cette directive définit l'exécutable à lancer,
   * **ExecReload=/bin/kill -HUP $MAINPID**,   * **ExecReload=/bin/kill -HUP $MAINPID**,
Ligne 1137: Ligne 587:
  
 <code> <code>
-[root@centos8 ~]# systemctl show sshd+[root@redhat9 ~]# systemctl show sshd
 Type=notify Type=notify
 +ExitType=main
 Restart=on-failure Restart=on-failure
 NotifyAccess=main NotifyAccess=main
Ligne 1144: Ligne 595:
 TimeoutStartUSec=1min 30s TimeoutStartUSec=1min 30s
 TimeoutStopUSec=1min 30s TimeoutStopUSec=1min 30s
 +TimeoutAbortUSec=1min 30s
 +TimeoutStartFailureMode=terminate
 +TimeoutStopFailureMode=terminate
 RuntimeMaxUSec=infinity RuntimeMaxUSec=infinity
 +RuntimeRandomizedExtraUSec=0
 WatchdogUSec=0 WatchdogUSec=0
-WatchdogTimestamp=Thu 2021-06-03 15:09:54 EDT +WatchdogTimestampMonotonic=0
-WatchdogTimestampMonotonic=12502561 +
-PermissionsStartOnly=no+
 RootDirectoryStartOnly=no RootDirectoryStartOnly=no
 RemainAfterExit=no RemainAfterExit=no
 GuessMainPID=yes GuessMainPID=yes
-MainPID=902+MainPID=875
 ControlPID=0 ControlPID=0
 FileDescriptorStoreMax=0 FileDescriptorStoreMax=0
Ligne 1158: Ligne 611:
 StatusErrno=0 StatusErrno=0
 Result=success Result=success
 +ReloadResult=success
 +CleanResult=success
 UID=[not set] UID=[not set]
 GID=[not set] GID=[not set]
 NRestarts=0 NRestarts=0
-ExecMainStartTimestamp=Thu 2021-06-03 15:09:54 EDT +OOMPolicy=stop 
-ExecMainStartTimestampMonotonic=12446178+ReloadSignal=1 
 +ExecMainStartTimestamp=Wed 2024-09-25 12:44:53 CEST 
 +ExecMainStartTimestampMonotonic=18089127
 ExecMainExitTimestampMonotonic=0 ExecMainExitTimestampMonotonic=0
-ExecMainPID=902+ExecMainPID=875
 ExecMainCode=0 ExecMainCode=0
 ExecMainStatus=0 ExecMainStatus=0
-ExecStart={ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }+ExecStart={ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } 
 +ExecStartEx={ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }
 ExecReload={ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 } ExecReload={ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }
 +ExecReloadEx={ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }
 Slice=system.slice Slice=system.slice
 ControlGroup=/system.slice/sshd.service ControlGroup=/system.slice/sshd.service
-MemoryCurrent=6270976 +ControlGroupId=3690 
-CPUUsageNSec=[not set] +MemoryCurrent=5275648 
-EffectiveCPUs+MemoryAvailable=infinity 
-EffectiveMemoryNodes=+CPUUsageNSec=122370000
 TasksCurrent=1 TasksCurrent=1
-IPIngressBytes=18446744073709551615 +IPIngressBytes=[no data
-IPIngressPackets=18446744073709551615 +IPIngressPackets=[no data
-IPEgressBytes=18446744073709551615 +IPEgressBytes=[no data
-IPEgressPackets=18446744073709551615 +IPEgressPackets=[no data
-Delegate=no +IOReadBytes=18446744073709551615 
-CPUAccounting=no +IOReadOperations=18446744073709551615 
-CPUWeight=[not set+IOWriteBytes=18446744073709551615 
-StartupCPUWeight=[not set+IOWriteOperations=18446744073709551615 
-CPUShares=[not set+lines 1-55
-StartupCPUShares=[not set+
-CPUQuotaPerSecUSec=infinity +
-CPUQuotaPeriodUSec=infinity +
-AllowedCPUs+
-AllowedMemoryNodes= +
-IOAccounting=no +
-IOWeight=[not set] +
-StartupIOWeight=[not set] +
-BlockIOAccounting=no +
-BlockIOWeight=[not set] +
-lines 1-57+
 </code> </code>
  
Ligne 1201: Ligne 649:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-dependencies sshd.service+[root@redhat9 ~]# systemctl list-dependencies sshd.service
 sshd.service sshd.service
 ● ├─system.slice ● ├─system.slice
 ● ├─sshd-keygen.target ● ├─sshd-keygen.target
-● │ ├─sshd-keygen@ecdsa.service +○ │ ├─sshd-keygen@ecdsa.service 
-● │ ├─sshd-keygen@ed25519.service +○ │ ├─sshd-keygen@ed25519.service 
-● │ └─sshd-keygen@rsa.service+○ │ └─sshd-keygen@rsa.service
 ● └─sysinit.target ● └─sysinit.target
 ●   ├─dev-hugepages.mount ●   ├─dev-hugepages.mount
 ●   ├─dev-mqueue.mount ●   ├─dev-mqueue.mount
 ●   ├─dracut-shutdown.service ●   ├─dracut-shutdown.service
-●   ├─import-state.service +○   ├─iscsi-onboot.service 
-●   ├─iscsi-onboot.service+○   ├─iscsi-starter.service
 ●   ├─kmod-static-nodes.service ●   ├─kmod-static-nodes.service
-●   ├─ldconfig.service +○   ├─ldconfig.service
-●   ├─loadmodules.service+
 ●   ├─lvm2-lvmpolld.socket ●   ├─lvm2-lvmpolld.socket
 ●   ├─lvm2-monitor.service ●   ├─lvm2-monitor.service
 +○   ├─multipathd.service
 ●   ├─nis-domainname.service ●   ├─nis-domainname.service
 ●   ├─plymouth-read-write.service ●   ├─plymouth-read-write.service
 ●   ├─plymouth-start.service ●   ├─plymouth-start.service
 ●   ├─proc-sys-fs-binfmt_misc.automount ●   ├─proc-sys-fs-binfmt_misc.automount
-●   ├─rngd.service +○   ├─selinux-autorelabel-mark.service
-●   ├─selinux-autorelabel-mark.service+
 ●   ├─sys-fs-fuse-connections.mount ●   ├─sys-fs-fuse-connections.mount
 ●   ├─sys-kernel-config.mount ●   ├─sys-kernel-config.mount
 ●   ├─sys-kernel-debug.mount ●   ├─sys-kernel-debug.mount
-●   ├─systemd-ask-password-console.path +●   ├─sys-kernel-tracing.mount 
-●   ├─systemd-binfmt.service +○   ├─systemd-ask-password-console.path 
-●   ├─systemd-firstboot.service +○   ├─systemd-binfmt.service 
-●   ├─systemd-hwdb-update.service +○   ├─systemd-boot-random-seed.service 
-●   ├─systemd-journal-catalog-update.service+●   ├─systemd-boot-update.service 
 +○   ├─systemd-firstboot.service 
 +○   ├─systemd-hwdb-update.service 
 +○   ├─systemd-journal-catalog-update.service
 ●   ├─systemd-journal-flush.service ●   ├─systemd-journal-flush.service
 ●   ├─systemd-journald.service ●   ├─systemd-journald.service
-●   ├─systemd-machine-id-commit.service+○   ├─systemd-machine-id-commit.service
 ●   ├─systemd-modules-load.service ●   ├─systemd-modules-load.service
 +●   ├─systemd-network-generator.service
 +○   ├─systemd-pcrmachine.service
 +○   ├─systemd-pcrphase-sysinit.service
 +○   ├─systemd-pcrphase.service
 ●   ├─systemd-random-seed.service ●   ├─systemd-random-seed.service
 +○   ├─systemd-repart.service
 ●   ├─systemd-sysctl.service ●   ├─systemd-sysctl.service
-●   ├─systemd-sysusers.service+○   ├─systemd-sysusers.service
 ●   ├─systemd-tmpfiles-setup-dev.service ●   ├─systemd-tmpfiles-setup-dev.service
 ●   ├─systemd-tmpfiles-setup.service ●   ├─systemd-tmpfiles-setup.service
 ●   ├─systemd-udev-trigger.service ●   ├─systemd-udev-trigger.service
 ●   ├─systemd-udevd.service ●   ├─systemd-udevd.service
-●   ├─systemd-update-done.service+○   ├─systemd-update-done.service
 ●   ├─systemd-update-utmp.service ●   ├─systemd-update-utmp.service
 ●   ├─cryptsetup.target ●   ├─cryptsetup.target
 +●   ├─integritysetup.target
 ●   ├─local-fs.target ●   ├─local-fs.target
 ●   │ ├─-.mount ●   │ ├─-.mount
-●   │ ├─boot.mount +lines 1-55
-●   │ └─systemd-remount-fs.service +
-●   └─swap.target +
-●     └─dev-disk-by\x2duuid-c8bb3f47\x2dd67f\x2d4b21\x2db781\x2d766899dc83d4.swap+
 </code> </code>
  
Ligne 1260: Ligne 713:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemdsystemunitpath+[root@redhat9 ~]# pkg-config systemd --variable=systemdsystemunitpath
 /etc/systemd/system:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:/usr/lib/systemd/system:/usr/lib/systemd/system:/lib/systemd/system /etc/systemd/system:/etc/systemd/system:/run/systemd/system:/usr/local/lib/systemd/system:/usr/lib/systemd/system:/usr/lib/systemd/system:/lib/systemd/system
 </code> </code>
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/systemd/system +[root@redhat9 ~]# ls -l /etc/systemd/system 
-total 4 +total 8 
-drwxr-xr-x. 2 root root   31 May   2020 basic.target.wants +drwxr-xr-x. 2 root root   65 Oct 19  2023  basic.target.wants 
-lrwxrwxrwx. 1 root root   41 May   2020 dbus-org.fedoraproject.FirewallD1.service -> /usr/lib/systemd/system/firewalld.service +drwxr-xr-x. 2 root root   31 Oct 19  2023  bluetooth.target.wants 
-lrwxrwxrwx. 1 root root   44 Jun  3 14:02 dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service +lrwxrwxrwx. 1 root root   37 Oct 19  2023  ctrl-alt-del.target -> /usr/lib/systemd/system/reboot.target 
-lrwxrwxrwx. 1 root root   57 May   2020 dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service +lrwxrwxrwx. 1 root root   41 Oct 19  2023  dbus-org.bluez.service -> /usr/lib/systemd/system/bluetooth.service 
-lrwxrwxrwx. 1 root root   41 May   2020 dbus-org.freedesktop.timedate1.service -> /usr/lib/systemd/system/timedatex.service +lrwxrwxrwx. 1 root root   41 Oct 19  2023  dbus-org.fedoraproject.FirewallD1.service -> /usr/lib/systemd/system/firewalld.service 
-lrwxrwxrwx. 1 root root   37 May   2020 default.target -> /lib/systemd/system/multi-user.target +lrwxrwxrwx. 1 root root   44 Oct 19  2023  dbus-org.freedesktop.Avahi.service -> /usr/lib/systemd/system/avahi-daemon.service 
-drwxr-xr-xroot root   32 May   2020 getty.target.wants +lrwxrwxrwx. 1 root root   44 Oct 19  2023  dbus-org.freedesktop.ModemManager1.service -> /usr/lib/systemd/system/ModemManager.service 
-drwxr-xr-x. 2 root root 4096 Jun  3 14:02 multi-user.target.wants +lrwxrwxrwx. 1 root root   57 Oct 19  2023  dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service 
-drwxr-xr-x. 2 root root   48 May   2020 network-online.target.wants +lrwxrwxrwx. 1 root root   43 Oct 19  2023  dbus.service -> /usr/lib/systemd/system/dbus-broker.service 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 nfs-blkmap.service.requires +lrwxrwxrwxroot root   40 Oct 19  2023  default.target -> /usr/lib/systemd/system/graphical.target 
-drwxr-xr-xroot root   33 Apr 19 12:07 nfs-idmapd.service.requires +drwxr-xr-x. 2 root root   45 Oct 19  2023  default.target.wants 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 nfs-mountd.service.requires +drwxr-xr-x. 2 root root   38 Oct 19  2023 'dev-virtio\x2dports-org.qemu.guest_agent.0.device.wants' 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 nfs-server.service.requires +lrwxrwxrwxroot root   35 Oct 19  2023  display-manager.service -> /usr/lib/systemd/system/gdm.service 
-drwxr-xr-x. 2 root root   26 Jun  3 14:02 printer.target.wants +drwxr-xr-x. 2 root root   32 Oct 19  2023  getty.target.wants 
-drwxr-xr-x. 2 root root   52 Apr 19 12:07 remote-fs.target.wants +drwxr-xr-x. 2 root root  181 Oct 19  2023  graphical.target.wants 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 rpc-gssd.service.requires +drwxr-xr-x. 2 root root   36 Oct 19  2023  local-fs.target.wants 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 rpc-statd-notify.service.requires +drwxr-xr-x. 2 root root 4096 Oct 19  2023  multi-user.target.wants 
-drwxr-xr-x. 2 root root   33 Apr 19 12:07 rpc-statd.service.requires +drwxr-xr-x. 2 root root   48 Oct 19  2023  network-online.target.wants 
-drwxr-xr-x. 2 root root  260 Jun  3 14:02 sockets.target.wants +drwxr-xr-x. 2 root root   26 Oct 19  2023  printer.target.wants 
-drwxr-xr-x. 2 root root  235 Apr 19 12:07 sysinit.target.wants +drwxr-xr-x. 2 root root   27 Oct 19  2023  remote-fs.target.wants 
-lrwxrwxrwxroot root   39 May   2020 syslog.service -> /usr/lib/systemd/system/rsyslog.service +drwxr-xr-x. 2 root root  186 Oct 19  2023  sockets.target.wants 
-lrwxrwxrwx. 1 root root    9 May 11  2019 systemd-timedated.service -> /dev/null +drwxr-xr-x. 2 root root 4096 Sep 25 12:08  sysinit.target.wants 
-drwxr-xr-x. 2 root root   34 May   2020 timers.target.wants+drwxr-xr-xroot root   86 Oct 19  2023  timers.target.wants 
 +drwxr-xr-x. 2 root root   29 Oct 19  2023  vmtoolsd.service.requires
 </code> </code>
  
Ligne 1297: Ligne 751:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze +[root@redhat9 ~]# systemd-analyze 
-Startup finished in 1.665s (kernel) + 6.977s (initrd) + 8.458s (userspace) = 17.101s +Startup finished in 1.309s (kernel) + 4.384s (initrd) + 29.375s (userspace) = 35.069s  
-multi-user.target reached after 5.528s in userspace+graphical.target reached after 29.358s in userspace.
 </code> </code>
  
Ligne 1305: Ligne 759:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze blame +[root@redhat9 ~]# systemd-analyze blame 
-          4.080s dracut-initqueue.service +15.289s plymouth-quit-wait.service 
-          3.257s kdump.service + 8.760s dev-disk-by\x2dpartuuid-d00dfc8a\x2d02.device 
-          1.727s tuned.service + 8.760s dev-disk-by\x2did-scsi\x2d0QEMU_QEMU_HARDDISK_drive\x2dscsi0\x2dpart2.device 
-          1.415s initrd-switch-root.service + 8.760s sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda2.device 
-          1.393s NetworkManager-wait-online.service + 8.760s dev-disk-by\x2dpath-pci\x2d0000:01:01.0\x2dscsi\x2d0:0:0:0\x2dpart2.device 
-          1.116s systemd-machined.service + 8.760s dev-sda2.device 
-          1.111s dracut-cmdline.service + 8.662s sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda-sda1.device 
-           850ms sssd.service + 8.662s dev-disk-by\x2did-scsi\x2d0QEMU_QEMU_HARDDISK_drive\x2dscsi0\x2dpart1.device 
-           791ms vdo.service + 8.662s dev-sda1.device 
-           713ms firewalld.service + 8.662s dev-disk-by\x2dpath-pci\x2d0000:01:01.0\x2dscsi\x2d0:0:0:0\x2dpart1.device 
-           622ms lvm2-monitor.service + 8.662s dev-disk-by\x2duuid-6f6c5bb9\x2d30be\x2d4734\x2dbc23\x2d03fed8541616.device 
-           605ms polkit.service + 8.662s dev-disk-by\x2dpartuuid-d00dfc8a\x2d01.device 
-           508ms chronyd.service + 8.629s dev-sda.device 
-           434ms avahi-daemon.service + 8.629s dev-disk-by\x2dpath-pci\x2d0000:01:01.0\x2dscsi\x2d0:0:0:0.device 
-           426ms systemd-logind.service + 8.629s dev-disk-by\x2did-scsi\x2d0QEMU_QEMU_HARDDISK_drive\x2dscsi0.device 
-           417ms netcf-transaction.service + 8.629s sys-devices-pci0000:00-0000:00:05.0-0000:01:01.0-virtio2-host0-target0:0:0-0:0:0:0-block-sda.device 
-           410ms dracut-pre-udev.service + 8.629s dev-disk-by\x2ddiskseq-1.device 
-           295ms libvirtd.service + 8.589s sys-module-fuse.device 
-           275ms dnf-makecache.service + 8.578s sys-devices-pci0000:00-0000:00:12.0-virtio1-net-ens18.device 
-           243ms systemd-udevd.service + 8.578s sys-subsystem-net-devices-ens18.device 
-           221ms systemd-journald.service + 8.560s sys-devices-platform-serial8250-tty-ttyS0.device 
-           196ms systemd-tmpfiles-setup.service + 8.560s dev-ttyS0.device 
-           151ms dracut-pre-pivot.service + 8.559s sys-devices-platform-serial8250-tty-ttyS2.device 
-           139ms sysroot.mount + 8.559s dev-ttyS2.device 
-           139ms systemd-update-utmp-runlevel.service + 8.558s dev-ttyS1.device 
-           122ms systemd-vconsole-setup.service + 8.558s sys-devices-platform-serial8250-tty-ttyS1.device 
-           110ms lvm2-pvscan@8:25.service + 8.557s dev-ttyS3.device 
-            98ms systemd-udev-trigger.service + 8.557s sys-devices-platform-serial8250-tty-ttyS3.device 
-            82ms gssproxy.service + 8.510s sys-module-configfs.device 
-            81ms cups.service + 4.024s initrd-switch-root.service 
-            79ms initrd-parse-etc.service + 2.468s firewalld.service 
-            77ms NetworkManager.service + 2.157s kdump.service 
-            72ms lvm2-pvscan@8:23.service + 1.944s systemd-udev-settle.service 
-            69ms systemd-user-sessions.service + 1.548s dnf-makecache.service 
-            68ms lvm2-pvscan@8:22.service + 1.454s NetworkManager-wait-online.service 
-            67ms unbound-anchor.service + 1.309s udisks2.service 
-            66ms rsyslog.service + 1.294s NetworkManager.service 
-            62ms boot.mount + 1.112s power-profiles-daemon.service 
-            56ms sshd.service + 1.091s polkit.service 
-            54ms smartd.service + 1.015s accounts-daemon.service 
-            54ms systemd-fsck@dev-disk-by\x2duuid-2ae4c035\x2d9244\x2d458c\x2d82c5\x2da49ae169cdb6.service +  953ms ModemManager.service 
-            53ms user@1000.service +  900ms user@42.service 
-            52ms auditd.service +  888ms dracut-initqueue.service 
-            51ms plymouth-quit.service +  671ms dbus-broker.service 
-            49ms rngd-wake-threshold.service +  661ms systemd-tmpfiles-setup-dev.service 
-            46ms import-state.service +  658ms systemd-udevd.service 
-            46ms systemd-tmpfiles-setup-dev.service +  561ms lvm2-monitor.service 
-            43ms ksmtuned.service +  547ms boot.mount 
-            42ms plymouth-quit-wait.service +  506ms cups.service 
-            42ms var-lib-nfs-rpc_pipefs.mount +  464ms sshd.service 
-            42ms rpc-statd-notify.service +  446ms logrotate.service 
-            38ms plymouth-switch-root.service +  382ms systemd-random-seed.service 
-            37ms systemd-remount-fs.service +  376ms auditd.service 
-            37ms plymouth-start.service +  371ms systemd-tmpfiles-setup.service 
-            33ms dev-disk-by\x2duuid-c8bb3f47\x2dd67f\x2d4b21\x2db781\x2d766899dc83d4.swap +  324ms systemd-sysctl.service 
-            33ms systemd-tmpfiles-clean.service +lines 1-55
-            31ms dev-hugepages.mount +
-lines 1-57+
 </code> </code>
  
Ligne 1369: Ligne 821:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze critical-chain sshd.service +[root@redhat9 ~]# systemd-analyze critical-chain sshd.service 
-The time after the unit is active or started is printed after the "@" character. +The time when unit became active or started is printed after the "@" character. 
-The time the unit takes to start is printed after the "+" character.+The time the unit took to start is printed after the "+" character.
  
-sshd.service +56ms +sshd.service +464ms 
-└─network.target @3.799s +└─network.target @12.377s 
-  └─NetworkManager.service @3.719s +77ms +  └─wpa_supplicant.service @25.556s +119ms 
-    └─network-pre.target @3.718s +    └─basic.target @7.432s 
-      └─firewalld.service @3.004s +713ms +      └─dbus-broker.service @6.758s +671ms 
-        └─polkit.service @2.397s +605ms +        └─dbus.socket @6.741s 
-          └─basic.target @2.392s +          └─sysinit.target @6.737s 
-            └─sockets.target @2.392s +            └─systemd-update-utmp.service @6.721s +15ms 
-              └─sssd-kcm.socket @2.391s +              └─auditd.service @6.333s +376ms 
-                └─sysinit.target @2.379s +                └─systemd-tmpfiles-setup.service @5.951s +371ms 
-                  └─systemd-update-utmp.service @2.370s +8ms +                  └─local-fs.target @5.939s 
-                    └─auditd.service @2.317s +52ms +                    └─run-user-42.mount @14.616s 
-                      └─systemd-tmpfiles-setup.service @2.118s +196ms +                      └─local-fs-pre.target @5.379s 
-                        └─import-state.service @2.070s +46ms +                        └─systemd-tmpfiles-setup-dev.service @3.398s +661ms 
-                          └─local-fs.target @2.069s +                          └─kmod-static-nodes.service @3.243s +49ms 
-                            └─boot.mount @2.006s +62ms +                            └─systemd-journald.socket 
-                              └─systemd-fsck@dev-disk-by\x2duuid-2ae4c035\x2d9244\x2d458c\x2d82c5\x2da49ae169cdb6.service @1.943s +54ms +                              └─system.slice 
-                                └─local-fs-pre.target @1.942s +                                └─-.slice
-                                  └─lvm2-monitor.service @1.319s +622ms +
-                                    └─dm-event.socket @1.317s +
-                                      └─-.mount +
-                                        └─system.slice +
-                                          └─-.slice+
 </code> </code>
  
Ligne 1401: Ligne 848:
  
 <code> <code>
-[root@centos7 ~]# systemd-analyze --help +[root@redhat9 ~]# systemd-analyze --help 
-systemd-analyze [OPTIONS...] {COMMAND...+systemd-analyze [OPTIONS...] COMMAND ...
  
-Process systemd profiling information +Profile systemd, show unit dependenciescheck unit files.
- +
-  -h --help           Show this help +
-     --version        Show package version +
-     --system         Connect to system manager +
-     --user           Connect to user service manager +
-     --order          When generating a dependency graph, show only order +
-     --require        When generating a dependency graphshow only requirement +
-     --from-pattern=GLOB, --to-pattern=GLOB +
-                      When generating a dependency graph, filter only origins +
-                      or destinations, respectively +
-     --fuzz=TIMESPAN  When printing the tree of the critical chain, print also +
-                      services, which finished TIMESPAN earlier, than the +
-                      latest in the branch. The unit of TIMESPAN is seconds +
-                      unless specified with a different unit, i.e50ms +
-     --no-pager       Do not pipe output into a pager+
  
 Commands: Commands:
-  time                Print time spent in the kernel before reaching userspace +  [time]                     Print time required to boot the machine 
-  blame               Print list of running units ordered by time to init +  blame                      Print list of running units ordered by 
-  critical-chain      Print a tree of the time critical chain of units +                             time to init 
-  plot                Output SVG graphic showing service initialization +  critical-chain [UNIT...]   Print a tree of the time critical chain 
-  dot                 Output dependency graph in dot(1) format +                             of units 
-  set-log-level LEVEL Set logging threshold for systemd +  plot                       Output SVG graphic showing service 
-  dump                Output state serialization of service manager+                             initialization 
 +  dot [UNIT...]              Output dependency graph in dot(1) format 
 +  dump [PATTERN...]          Output state serialization of service 
 +                             manager 
 +  cat-config                 Show configuration file and drop-ins 
 +  unit-files                 List files and symlinks for units 
 +  unit-paths                 List load directories for units 
 +  exit-status [STATUS...]    List exit status definitions 
 +  capability [CAP...]        List capability definitions 
 +  syscall-filter [NAME...]   List syscalls in seccomp filters 
 +  filesystems [NAME...]      List known filesystems 
 +  condition CONDITION...     Evaluate conditions and asserts 
 +  compare-versions VERSION1 [OP] VERSION2 
 +                             Compare two version strings 
 +  verify FILE...             Check unit files for correctness 
 +  calendar SPEC...           Validate repetitive calendar time 
 +                             events 
 +  timestamp TIMESTAMP...     Validate a timestamp 
 +  timespan SPAN...           Validate a time span 
 +  security [UNIT...]         Analyze security of unit 
 +  inspect-elf FILE...        Parse and print ELF package metadata 
 + 
 +Options: 
 +     --recursive-errors=MODE Control which units are verified 
 +     --offline=BOOL          Perform a security review on unit file(s) 
 +     --threshold=N           Exit with a non-zero status when overall 
 +                             exposure level is over threshold value 
 +     --security-policy=PATH  Use custom JSON security policy instead 
 +                             of built-in one 
 +     --json=pretty|short|off Generate JSON output of the security 
 +                             analysis table, or plot's raw time data 
 +     --no-pager              Do not pipe output into a pager 
 +     --no-legend             Disable column headers and hints in plot 
 +                             with either --table or --json= 
 +     --system                Operate on system systemd instance 
 +     --user                  Operate on user systemd instance 
 +     --global                Operate on global user configuration 
 +  -H --host=[USER@]HOST      Operate on remote host 
 +  -M --machine=CONTAINER     Operate on local container 
 +     --order                 Show only order in the graph 
 +     --require               Show only requirement in the graph 
 +     --from-pattern=GLOB     Show only origins in the graph 
 +     --to-pattern=GLOB       Show only destinations in the graph 
 +     --fuzz=SECONDS          Also print services which finished SECONDS 
 +lines 1-55
 </code> </code>
  
Ligne 1436: Ligne 912:
  
 <code> <code>
-[root@centos8 ~]# cat /usr/lib/systemd/system/graphical.target +[root@redhat9 ~]# cat /usr/lib/systemd/system/graphical.target 
-#  SPDX-License-Identifier: LGPL-2.1++#  SPDX-License-Identifier: LGPL-2.1-or-later
 # #
 #  This file is part of systemd. #  This file is part of systemd.
Ligne 1472: Ligne 948:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-dependencies multi-user.target+[root@redhat9 ~]# systemctl list-dependencies multi-user.target
 multi-user.target multi-user.target
 ● ├─atd.service ● ├─atd.service
 ● ├─auditd.service ● ├─auditd.service
 ● ├─avahi-daemon.service ● ├─avahi-daemon.service
-● ├─chronyd.service 
 ● ├─crond.service ● ├─crond.service
 ● ├─cups.path ● ├─cups.path
 ● ├─cups.service ● ├─cups.service
-● ├─dbus.service 
-● ├─dnf-makecache.timer 
 ● ├─firewalld.service ● ├─firewalld.service
 +○ ├─insights-client-boot.service
 ● ├─irqbalance.service ● ├─irqbalance.service
 ● ├─kdump.service ● ├─kdump.service
-● ├─ksm.service 
-● ├─ksmtuned.service 
 ● ├─libstoragemgmt.service ● ├─libstoragemgmt.service
-● ├─libvirtd.service 
 ● ├─mcelog.service ● ├─mcelog.service
-● ├─mdmonitor.service +○ ├─mdmonitor.service 
-● ├─netcf-transaction.service+● ├─ModemManager.service
 ● ├─NetworkManager.service ● ├─NetworkManager.service
 +○ ├─ostree-readonly-sysroot-migration.service
 ● ├─plymouth-quit-wait.service ● ├─plymouth-quit-wait.service
-● ├─plymouth-quit.service +○ ├─plymouth-quit.service 
-● ├─rpcbind.service+● ├─rhsmcertd.service
 ● ├─rsyslog.service ● ├─rsyslog.service
-● ├─smartd.service+○ ├─smartd.service
 ● ├─sshd.service ● ├─sshd.service
-● ├─sssd.service+○ ├─sssd.service
 ● ├─systemd-ask-password-wall.path ● ├─systemd-ask-password-wall.path
 ● ├─systemd-logind.service ● ├─systemd-logind.service
-● ├─systemd-update-utmp-runlevel.service+○ ├─systemd-update-utmp-runlevel.service
 ● ├─systemd-user-sessions.service ● ├─systemd-user-sessions.service
-● ├─tuned.service +○ ├─tuned.service 
-● ├─vdo.service+○ ├─vmtoolsd.service
 ● ├─basic.target ● ├─basic.target
 ● │ ├─-.mount ● │ ├─-.mount
-● │ ├─microcode.service+○ │ ├─low-memory-monitor.service 
 +○ │ ├─microcode.service
 ● │ ├─paths.target ● │ ├─paths.target
 ● │ ├─slices.target ● │ ├─slices.target
Ligne 1521: Ligne 994:
 ● │ │ ├─iscsid.socket ● │ │ ├─iscsid.socket
 ● │ │ ├─iscsiuio.socket ● │ │ ├─iscsiuio.socket
-● │ │ ├─libvirtd-ro.socket +○ │ │ ├─multipathd.socket
-● │ │ ├─libvirtd.socket +
-● │ │ ├─rpcbind.socket+
 ● │ │ ├─sssd-kcm.socket ● │ │ ├─sssd-kcm.socket
 ● │ │ ├─systemd-coredump.socket ● │ │ ├─systemd-coredump.socket
Ligne 1530: Ligne 1001:
 ● │ │ ├─systemd-journald.socket ● │ │ ├─systemd-journald.socket
 ● │ │ ├─systemd-udevd-control.socket ● │ │ ├─systemd-udevd-control.socket
-lines 1-57+● │ │ └─systemd-udevd-kernel.socket 
 +● │ ├─sysinit.target 
 +● │ │ ├─dev-hugepages.mount 
 +lines 1-55
 </code> </code>
  
Ligne 1542: Ligne 1016:
  
 <code> <code>
-[root@centos8 ~]# systemctl --failed +[root@redhat9 ~]# systemctl --failed 
-0 loaded units listed. Pass --all to see loaded but inactive units, too. +  UNIT LOAD ACTIVE SUB DESCRIPTION 
-To show all installed unit files use 'systemctl list-unit-files'.+0 loaded units listed.
 </code> </code>
  
Ligne 1550: Ligne 1024:
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/systemd/system/multi-user.target.wants+[root@redhat9 ~]# ls -l /etc/systemd/system/multi-user.target.wants
 total 0 total 0
-lrwxrwxrwx. 1 root root 35 May  8  2020 atd.service -> /usr/lib/systemd/system/atd.service +lrwxrwxrwx. 1 root root 35 Oct 19  2023 atd.service -> /usr/lib/systemd/system/atd.service 
-lrwxrwxrwx. 1 root root 38 May  8  2020 auditd.service -> /usr/lib/systemd/system/auditd.service +lrwxrwxrwx. 1 root root 38 Oct 19  2023 auditd.service -> /usr/lib/systemd/system/auditd.service 
-lrwxrwxrwx. 1 root root 44 Jun  3 14:02 avahi-daemon.service -> /usr/lib/systemd/system/avahi-daemon.service +lrwxrwxrwx. 1 root root 44 Oct 19  2023 avahi-daemon.service -> /usr/lib/systemd/system/avahi-daemon.service 
-lrwxrwxrwx. 1 root root 39 May  8  2020 chronyd.service -> /usr/lib/systemd/system/chronyd.service +lrwxrwxrwx. 1 root root 37 Oct 19  2023 crond.service -> /usr/lib/systemd/system/crond.service 
-lrwxrwxrwx. 1 root root 37 May  8  2020 crond.service -> /usr/lib/systemd/system/crond.service +lrwxrwxrwx. 1 root root 33 Oct 19  2023 cups.path -> /usr/lib/systemd/system/cups.path 
-lrwxrwxrwx. 1 root root 33 Jun  3 14:02 cups.path -> /usr/lib/systemd/system/cups.path +lrwxrwxrwx. 1 root root 36 Oct 19  2023 cups.service -> /usr/lib/systemd/system/cups.service 
-lrwxrwxrwx. 1 root root 36 Jun  3 14:02 cups.service -> /usr/lib/systemd/system/cups.service +lrwxrwxrwx. 1 root root 41 Oct 19  2023 firewalld.service -> /usr/lib/systemd/system/firewalld.service 
-lrwxrwxrwx. 1 root root 43 May  8  2020 dnf-makecache.timer -> /usr/lib/systemd/system/dnf-makecache.timer +lrwxrwxrwx. 1 root root 52 Oct 19  2023 insights-client-boot.service -> /usr/lib/systemd/system/insights-client-boot.service 
-lrwxrwxrwx. 1 root root 41 May  8  2020 firewalld.service -> /usr/lib/systemd/system/firewalld.service +lrwxrwxrwx. 1 root root 42 Oct 19  2023 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service 
-lrwxrwxrwx. 1 root root 42 May  8  2020 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service +lrwxrwxrwx. 1 root root 37 Oct 19  2023 kdump.service -> /usr/lib/systemd/system/kdump.service 
-lrwxrwxrwx. 1 root root 37 May  8  2020 kdump.service -> /usr/lib/systemd/system/kdump.service +lrwxrwxrwx. 1 root root 46 Oct 19  2023 libstoragemgmt.service -> /usr/lib/systemd/system/libstoragemgmt.service 
-lrwxrwxrwx. 1 root root 35 Apr 19 12:07 ksm.service -> /usr/lib/systemd/system/ksm.service +lrwxrwxrwx. 1 root root 38 Oct 19  2023 mcelog.service -> /usr/lib/systemd/system/mcelog.service 
-lrwxrwxrwx. 1 root root 40 Apr 19 12:07 ksmtuned.service -> /usr/lib/systemd/system/ksmtuned.service +lrwxrwxrwx. 1 root root 41 Oct 19  2023 mdmonitor.service -> /usr/lib/systemd/system/mdmonitor.service 
-lrwxrwxrwx. 1 root root 46 May  8  2020 libstoragemgmt.service -> /usr/lib/systemd/system/libstoragemgmt.service +lrwxrwxrwx. 1 root root 44 Oct 19  2023 ModemManager.service -> /usr/lib/systemd/system/ModemManager.service 
-lrwxrwxrwx. 1 root root 40 Apr 19 12:07 libvirtd.service -> /usr/lib/systemd/system/libvirtd.service +lrwxrwxrwx. 1 root root 46 Oct 19  2023 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service 
-lrwxrwxrwx. 1 root root 38 May  8  2020 mcelog.service -> /usr/lib/systemd/system/mcelog.service +lrwxrwxrwx. 1 root root 40 Oct 19  2023 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target 
-lrwxrwxrwx. 1 root root 41 May  8  2020 mdmonitor.service -> /usr/lib/systemd/system/mdmonitor.service +lrwxrwxrwx. 1 root root 41 Oct 19  2023 rhsmcertd.service -> /usr/lib/systemd/system/rhsmcertd.service 
-lrwxrwxrwx. 1 root root 49 Apr 19 12:07 netcf-transaction.service -> /usr/lib/systemd/system/netcf-transaction.service +lrwxrwxrwx. 1 root root 39 Oct 19  2023 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service 
-lrwxrwxrwx. 1 root root 46 May  8  2020 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service +lrwxrwxrwx. 1 root root 38 Oct 19  2023 smartd.service -> /usr/lib/systemd/system/smartd.service 
-lrwxrwxrwx. 1 root root 41 Apr 19 12:07 nfs-client.target -> /usr/lib/systemd/system/nfs-client.target +lrwxrwxrwx. 1 root root 36 Oct 19  2023 sshd.service -> /usr/lib/systemd/system/sshd.service 
-lrwxrwxrwx. 1 root root 40 May  8  2020 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target +lrwxrwxrwx. 1 root root 36 Oct 19  2023 sssd.service -> /usr/lib/systemd/system/sssd.service 
-lrwxrwxrwx. 1 root root 39 Apr 19 12:07 rpcbind.service -> /usr/lib/systemd/system/rpcbind.service +lrwxrwxrwx. 1 root root 37 Oct 19  2023 tuned.service -> /usr/lib/systemd/system/tuned.service 
-lrwxrwxrwx. 1 root root 39 May  8  2020 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service +lrwxrwxrwx. 1 root root 40 Oct 19  2023 vmtoolsd.service -> /usr/lib/systemd/system/vmtoolsd.service
-lrwxrwxrwx. 1 root root 38 May  8  2020 smartd.service -> /usr/lib/systemd/system/smartd.service +
-lrwxrwxrwx. 1 root root 36 May  8  2020 sshd.service -> /usr/lib/systemd/system/sshd.service +
-lrwxrwxrwx. 1 root root 36 May  8  2020 sssd.service -> /usr/lib/systemd/system/sssd.service +
-lrwxrwxrwx. 1 root root 37 May  8  2020 tuned.service -> /usr/lib/systemd/system/tuned.service +
-lrwxrwxrwx. 1 root root 35 May  8  2020 vdo.service -> /usr/lib/systemd/system/vdo.service+
  
-[root@centos8 ~]# ls -l /usr/lib/systemd/system/multi-user.target.wants+[root@redhat9 ~]# ls -l /usr/lib/systemd/system/multi-user.target.wants
 total 0 total 0
-lrwxrwxrwx. 1 root root 15 Apr  7 12:08 dbus.service -> ../dbus.service +lrwxrwxrwx. 1 root root 15 Jul 18 13:00 getty.target -> ../getty.target 
-lrwxrwxrwx. 1 root root 15 Apr  7 16:55 getty.target -> ../getty.target +lrwxrwxrwx. 1 root root 44 May 17 18:27 ostree-readonly-sysroot-migration.service -> ../ostree-readonly-sysroot-migration.service 
-lrwxrwxrwx. 1 root root 24 Oct  6  2020 plymouth-quit.service -> ../plymouth-quit.service +lrwxrwxrwx. 1 root root 24 Jul 14  2023 plymouth-quit.service -> ../plymouth-quit.service 
-lrwxrwxrwx. 1 root root 29 Oct  6  2020 plymouth-quit-wait.service -> ../plymouth-quit-wait.service +lrwxrwxrwx. 1 root root 29 Jul 14  2023 plymouth-quit-wait.service -> ../plymouth-quit-wait.service 
-lrwxrwxrwx. 1 root root 33 Apr  7 16:55 systemd-ask-password-wall.path -> ../systemd-ask-password-wall.path +lrwxrwxrwx. 1 root root 33 Jul 18 13:00 systemd-ask-password-wall.path -> ../systemd-ask-password-wall.path 
-lrwxrwxrwx. 1 root root 25 Apr  7 16:55 systemd-logind.service -> ../systemd-logind.service +lrwxrwxrwx. 1 root root 25 Jul 18 13:00 systemd-logind.service -> ../systemd-logind.service 
-lrwxrwxrwx. 1 root root 39 Apr  7 16:55 systemd-update-utmp-runlevel.service -> ../systemd-update-utmp-runlevel.service +lrwxrwxrwx. 1 root root 39 Jul 18 13:00 systemd-update-utmp-runlevel.service -> ../systemd-update-utmp-runlevel.service 
-lrwxrwxrwx. 1 root root 32 Apr  7 16:55 systemd-user-sessions.service -> ../systemd-user-sessions.service+lrwxrwxrwx. 1 root root 32 Jul 18 13:00 systemd-user-sessions.service -> ../systemd-user-sessions.service
 </code> </code>
  
Ligne 1600: Ligne 1069:
  
 <code> <code>
-[root@centos8 ~]# systemctl get-default +[root@redhat9 ~]# systemctl get-default 
-multi-user.target+graphical.target
 </code> </code>
  
Ligne 1607: Ligne 1076:
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/systemd/system/default.target +[root@redhat9 ~]# ls -l /etc/systemd/system/default.target 
-lrwxrwxrwx. 1 root root 37 May  8  2020 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target+lrwxrwxrwx. 1 root root 40 Oct 19  2023 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
 </code> </code>
  
Ligne 1616: Ligne 1085:
  
 <code> <code>
-[root@centos8 ~]# systemctl set-default graphical.target +[root@redhat9 ~]# systemctl set-default multi-user.target 
-Removed /etc/systemd/system/default.target. +Removed "/etc/systemd/system/default.target".
-Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target. +
-[root@centos8 ~]# ls -l /etc/systemd/system/default.target +
-lrwxrwxrwx. 1 root root 40 Jun  6 08:11 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target +
-[root@centos8 ~]# systemctl set-default multi-user.target +
-Removed /etc/systemd/system/default.target.+
 Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/multi-user.target. Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/multi-user.target.
-[root@centos8 ~]# ls -l /etc/systemd/system/default.target + 
-lrwxrwxrwx. 1 root root 41 Jun  6 08:11 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target+[root@redhat9 ~]# ls -l /etc/systemd/system/default.target 
 +lrwxrwxrwx. 1 root root 41 Sep 26 14:50 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target 
 + 
 +[root@redhat9 ~]# systemctl set-default graphical.target 
 +Removed "/etc/systemd/system/default.target"
 +Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target. 
 + 
 +[root@redhat9 ~]# ls -l /etc/systemd/system/default.target 
 +lrwxrwxrwx. 1 root root 40 Sep 26 14:51 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
 </code> </code>
  
Ligne 1633: Ligne 1105:
  
 <code> <code>
-[root@centos8 ~]# systemctl isolate rescue +[root@redhat9 ~]# systemctl isolate rescue 
-[root@centos8 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 + 
-rescue.target       loaded active active Rescue Mode              +[root@redhat9 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 
-[root@centos8 ~]# runlevel +  rescue.target         loaded active active Rescue Mode 
-+             
-[root@centos8 ~]# who -r +[root@redhat9 ~]# runlevel 
-         run-level 1  2021-06-15 04:22                   last=3+1 
 + 
 +[root@redhat9 ~]# who -r 
 +         run-level 1  2024-09-26 14:52                   last=5
 </code> </code>
  
 <code> <code>
-[root@centos8 ~]# systemctl isolate multi-user +[root@redhat9 ~]# systemctl isolate graphical 
-[root@centos8 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 + 
-multi-user.target      loaded active active Multi-User System           +[root@redhat9 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 
-[root@centos8 ~]# runlevel +  graphical.target       loaded active active Graphical Interface 
-3 + 
-[root@centos8 ~]# who -r +[root@redhat9 ~]# runlevel 
-         run-level  2021-06-15 04:24                   last=1+
 + 
 +[root@redhat9 ~]# who -r 
 +         run-level  2024-09-26 14:55                   last=1
 </code> </code>
  
Ligne 1659: Ligne 1137:
  
 <code> <code>
-[root@centos8 ~]# dnf install httpd+[root@redhat9 ~]# dnf install httpd 
 +Updating Subscription Management repositories. 
 +Last metadata expiration check: 1:59:56 ago on Thu 26 Sep 2024 12:57:02 PM CEST. 
 +Dependencies resolved. 
 +================================================================================================================================================================================================================== 
 + Package                                           Architecture                          Version                                            Repository                                                       Size 
 +================================================================================================================================================================================================================== 
 +Installing: 
 + httpd                                             x86_64                                2.4.57-11.el9_4.1                                  rhel-9-for-x86_64-appstream-rpms                                 51 k 
 +Installing dependencies: 
 + apr                                               x86_64                                1.7.0-12.el9_3                                     rhel-9-for-x86_64-appstream-rpms                                126 k 
 + apr-util                                          x86_64                                1.6.1-23.el9                                       rhel-9-for-x86_64-appstream-rpms                                 97 k 
 + apr-util-bdb                                      x86_64                                1.6.1-23.el9                                       rhel-9-for-x86_64-appstream-rpms                                 14 k 
 + httpd-core                                        x86_64                                2.4.57-11.el9_4.1                                  rhel-9-for-x86_64-appstream-rpms                                1.5 M 
 + httpd-filesystem                                  noarch                                2.4.57-11.el9_4.1                                  rhel-9-for-x86_64-appstream-rpms                                 14 k 
 + httpd-tools                                       x86_64                                2.4.57-11.el9_4.1                                  rhel-9-for-x86_64-appstream-rpms                                 86 k 
 + redhat-logos-httpd                                noarch                                90.4-2.el9                                         rhel-9-for-x86_64-appstream-rpms                                 18 k 
 +Installing weak dependencies: 
 + apr-util-openssl                                  x86_64                                1.6.1-23.el9                                       rhel-9-for-x86_64-appstream-rpms                                 17 k 
 + mod_http2                                         x86_64                                2.0.26-2.el9_4                                     rhel-9-for-x86_64-appstream-rpms                                167 k 
 + mod_lua                                           x86_64                                2.4.57-11.el9_4.1                                  rhel-9-for-x86_64-appstream-rpms                                 60 k 
 + 
 +Transaction Summary 
 +================================================================================================================================================================================================================== 
 +Install  11 Packages 
 + 
 +Total download size: 2.2 M 
 +Installed size: 6.0 M 
 +Is this ok [y/N]: y 
 +Downloading Packages: 
 +(1/11): apr-util-bdb-1.6.1-23.el9.x86_64.rpm                                                                                                                                       28 kB/s |  14 kB     00:00     
 +(2/11): apr-util-openssl-1.6.1-23.el9.x86_64.rpm                                                                                                                                   31 kB/s |  17 kB     00:00     
 +(3/11): apr-util-1.6.1-23.el9.x86_64.rpm                                                                                                                                          165 kB/s |  97 kB     00:00     
 +(4/11): redhat-logos-httpd-90.4-2.el9.noarch.rpm                                                                                                                                   69 kB/s |  18 kB     00:00     
 +(5/11): apr-1.7.0-12.el9_3.x86_64.rpm                                                                                                                                             374 kB/s | 126 kB     00:00     
 +(6/11): mod_http2-2.0.26-2.el9_4.x86_64.rpm                                                                                                                                       435 kB/s | 167 kB     00:00     
 +(7/11): httpd-core-2.4.57-11.el9_4.1.x86_64.rpm                                                                                                                                   2.9 MB/s | 1.5 MB     00:00     
 +(8/11): httpd-filesystem-2.4.57-11.el9_4.1.noarch.rpm                                                                                                                              31 kB/s |  14 kB     00:00     
 +(9/11): httpd-2.4.57-11.el9_4.1.x86_64.rpm                                                                                                                                         63 kB/s |  51 kB     00:00     
 +(10/11): httpd-tools-2.4.57-11.el9_4.1.x86_64.rpm                                                                                                                                 297 kB/s |  86 kB     00:00     
 +(11/11): mod_lua-2.4.57-11.el9_4.1.x86_64.rpm                                                                                                                                     154 kB/s |  60 kB     00:00     
 +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
 +Total                                                                                                                                                                             1.2 MB/s | 2.2 MB     00:01      
 +Running transaction check 
 +Transaction check succeeded. 
 +Running transaction test 
 +Transaction test succeeded. 
 +Running transaction 
 +  Preparing        :                                                                                                                                                                                          1/1  
 +  Installing       : apr-1.7.0-12.el9_3.x86_64                                                                                                                                                               1/11  
 +  Installing       : apr-util-bdb-1.6.1-23.el9.x86_64                                                                                                                                                        2/11  
 +  Installing       : apr-util-openssl-1.6.1-23.el9.x86_64                                                                                                                                                    3/11  
 +  Installing       : apr-util-1.6.1-23.el9.x86_64                                                                                                                                                            4/11  
 +  Installing       : httpd-tools-2.4.57-11.el9_4.1.x86_64                                                                                                                                                    5/11  
 +  Running scriptlet: httpd-filesystem-2.4.57-11.el9_4.1.noarch                                                                                                                                               6/11  
 +  Installing       : httpd-filesystem-2.4.57-11.el9_4.1.noarch                                                                                                                                               6/11  
 +  Installing       : httpd-core-2.4.57-11.el9_4.1.x86_64                                                                                                                                                     7/11  
 +  Installing       : mod_lua-2.4.57-11.el9_4.1.x86_64                                                                                                                                                        8/11  
 +  Installing       : redhat-logos-httpd-90.4-2.el9.noarch                                                                                                                                                    9/11  
 +  Installing       : mod_http2-2.0.26-2.el9_4.x86_64                                                                                                                                                        10/11  
 +  Installing       : httpd-2.4.57-11.el9_4.1.x86_64                                                                                                                                                         11/11  
 +  Running scriptlet: httpd-2.4.57-11.el9_4.1.x86_64                                                                                                                                                         11/11  
 +  Verifying        : apr-util-1.6.1-23.el9.x86_64                                                                                                                                                            1/11  
 +  Verifying        : apr-util-bdb-1.6.1-23.el9.x86_64                                                                                                                                                        2/11  
 +  Verifying        : apr-util-openssl-1.6.1-23.el9.x86_64                                                                                                                                                    3/11  
 +  Verifying        : redhat-logos-httpd-90.4-2.el9.noarch                                                                                                                                                    4/11  
 +  Verifying        : apr-1.7.0-12.el9_3.x86_64                                                                                                                                                               5/11  
 +  Verifying        : mod_http2-2.0.26-2.el9_4.x86_64                                                                                                                                                         6/11  
 +  Verifying        : httpd-2.4.57-11.el9_4.1.x86_64                                                                                                                                                          7/11  
 +  Verifying        : httpd-core-2.4.57-11.el9_4.1.x86_64                                                                                                                                                     8/11  
 +  Verifying        : httpd-filesystem-2.4.57-11.el9_4.1.noarch                                                                                                                                               9/11  
 +  Verifying        : httpd-tools-2.4.57-11.el9_4.1.x86_64                                                                                                                                                   10/11  
 +  Verifying        : mod_lua-2.4.57-11.el9_4.1.x86_64                                                                                                                                                       11/11  
 +Installed products updated. 
 + 
 +Installed: 
 +  apr-1.7.0-12.el9_3.x86_64                apr-util-1.6.1-23.el9.x86_64                  apr-util-bdb-1.6.1-23.el9.x86_64         apr-util-openssl-1.6.1-23.el9.x86_64     httpd-2.4.57-11.el9_4.1.x86_64       
 +  httpd-core-2.4.57-11.el9_4.1.x86_64      httpd-filesystem-2.4.57-11.el9_4.1.noarch     httpd-tools-2.4.57-11.el9_4.1.x86_64     mod_http2-2.0.26-2.el9_4.x86_64          mod_lua-2.4.57-11.el9_4.1.x86_64     
 +  redhat-logos-httpd-90.4-2.el9.noarch     
 + 
 +Complete!
 </code> </code>
  
Ligne 1665: Ligne 1223:
  
 <code> <code>
-[root@centos8 ~]# systemctl status httpd.service +[root@redhat9 ~]# systemctl status httpd.service 
-● httpd.service - The Apache HTTP Server +○ httpd.service - The Apache HTTP Server 
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled) 
-   Active: inactive (dead) +     Active: inactive (dead) 
-     Docs: man:httpd.service(8)+       Docs: man:httpd.service(8)
 </code> </code>
  
Ligne 1680: Ligne 1238:
  
 <code> <code>
-[root@centos8 ~]# systemctl is-enabled httpd.service+[root@redhat9 ~]# systemctl is-enabled httpd.service
 disabled disabled
 </code> </code>
Ligne 1687: Ligne 1245:
  
 <code> <code>
-[root@centos8 ~]# systemctl enable httpd.service+[root@redhat9 ~]# systemctl enable httpd.service
 Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service. Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
  
-[root@centos8 ~]# systemctl is-enabled httpd.service+[root@redhat9 ~]# systemctl is-enabled httpd.service
 enabled enabled
  
-[root@centos8 ~]# systemctl status httpd.service +[root@redhat9 ~]# systemctl status httpd.service 
-● httpd.service - The Apache HTTP Server +○ httpd.service - The Apache HTTP Server 
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled) 
-   Active: inactive (dead) +     Active: inactive (dead) 
-     Docs: man:httpd.service(8)+       Docs: man:httpd.service(8)
 </code> </code>
  
Ligne 1713: Ligne 1271:
  
 <code> <code>
-[root@centos8 ~]# systemctl is-active httpd.service+[root@redhat9 ~]# systemctl is-active httpd.service
 inactive inactive
 </code> </code>
Ligne 1720: Ligne 1278:
  
 <code> <code>
-[root@centos8 ~]# systemctl start httpd.service+[root@redhat9 ~]# systemctl start httpd.service
 </code> </code>
  
Ligne 1726: Ligne 1284:
  
 <code> <code>
-[root@centos8 ~]# systemctl is-active httpd.service+[root@redhat9 ~]# systemctl is-active httpd.service
 active active
  
-[root@centos8 ~]# systemctl status httpd.service+[root@redhat9 ~]# systemctl status httpd.service
 ● httpd.service - The Apache HTTP Server ● httpd.service - The Apache HTTP Server
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled) 
-   Active: active (running) since Sun 2021-06-06 15:33:06 EDT14s ago +     Active: active (running) since Thu 2024-09-26 15:01:28 CEST43s ago 
-     Docs: man:httpd.service(8) +       Docs: man:httpd.service(8) 
- Main PID: 34382 (httpd) +   Main PID: 7187 (httpd) 
-   Status: "Running, listening onport 80+     Status: "Total requests0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec
-    Tasks: 213 (limit: 23719+      Tasks: 177 (limit: 48800
-   Memory: 36.3M +     Memory: 40.5M 
-   CGroup: /system.slice/httpd.service +        CPU: 128ms 
-           ├─34382 /usr/sbin/httpd -DFOREGROUND +     CGroup: /system.slice/httpd.service 
-           ├─34383 /usr/sbin/httpd -DFOREGROUND +             ├─7187 /usr/sbin/httpd -DFOREGROUND 
-           ├─34384 /usr/sbin/httpd -DFOREGROUND +             ├─7188 /usr/sbin/httpd -DFOREGROUND 
-           ├─34385 /usr/sbin/httpd -DFOREGROUND +             ├─7189 /usr/sbin/httpd -DFOREGROUND 
-           └─34386 /usr/sbin/httpd -DFOREGROUND+             ├─7190 /usr/sbin/httpd -DFOREGROUND 
 +             └─7191 /usr/sbin/httpd -DFOREGROUND
  
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +Sep 26 15:01:28 redhat9.ittraining.loc httpd[7187]: Server configured, listening on: port 80 
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80+Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server.
 </code> </code>
  
Ligne 1753: Ligne 1312:
  
 <code> <code>
-[root@centos8 ~]# systemctl stop httpd.service +[root@redhat9 ~]# systemctl stop httpd.service 
-[root@centos8 ~]# systemctl status httpd.service + 
-● httpd.service - The Apache HTTP Server +[root@redhat9 ~]# systemctl status httpd.service 
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +○ httpd.service - The Apache HTTP Server 
-   Active: inactive (dead) since Sun 2021-06-06 23:58:04 EDT8s ago +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled) 
-     Docs: man:httpd.service(8) +     Active: inactive (dead) since Thu 2024-09-26 15:02:55 CEST2s ago 
-  Process: 34382 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) +   Duration: 1min 26.084s 
- Main PID: 34382 (code=exited, status=0/SUCCESS) +       Docs: man:httpd.service(8) 
-   Status: "Running, listening onport 80"+    Process: 7187 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) 
 +   Main PID: 7187 (code=exited, status=0/SUCCESS) 
 +     Status: "Total requests0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec" 
 +        CPU: 178ms
  
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +Sep 26 15:01:28 redhat9.ittraining.loc httpd[7187]: Server configured, listening on: port 80 
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80 +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server. 
-Jun 06 23:58:02 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +Sep 26 15:02:54 redhat9.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... 
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded+Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: httpd.service: Deactivated successfully
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.+Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.
 </code> </code>
  
Ligne 1774: Ligne 1336:
  
 <code> <code>
-[root@centos8 ~]# systemctl disable httpd.service +[root@redhat9 ~]# systemctl disable httpd.service 
-Removed /etc/systemd/system/multi-user.target.wants/httpd.service. +Removed "/etc/systemd/system/multi-user.target.wants/httpd.service". 
-[root@centos8 ~]# systemctl status httpd.service + 
-● httpd.service - The Apache HTTP Server +[root@redhat9 ~]# systemctl status httpd.service 
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +○ httpd.service - The Apache HTTP Server 
-   Active: inactive (dead) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled) 
-     Docs: man:httpd.service(8)+     Active: inactive (dead) 
 +       Docs: man:httpd.service(8)
  
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +Sep 26 15:01:28 redhat9.ittraining.loc httpd[7187]: Server configured, listening on: port 80 
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80 +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server. 
-Jun 06 23:58:02 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +Sep 26 15:02:54 redhat9.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... 
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded+Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: httpd.service: Deactivated successfully
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.+Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.
 </code> </code>
  
Ligne 1795: Ligne 1358:
  
 <code> <code>
-[root@centos8 ~]# cat /usr/lib/systemd/system/httpd@.service+[root@redhat9 ~]# cat /usr/lib/systemd/system/httpd@.service
 # This is a template for httpd instances. # This is a template for httpd instances.
 # See httpd@.service(8) for more information. # See httpd@.service(8) for more information.
Ligne 1810: Ligne 1373:
 ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i
 ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i
 +ExecStartPre=/bin/mkdir -m 700 -p /var/lib/httpd/instance-%i
 +ExecStartPre=/bin/chown apache.apache /var/lib/httpd/instance-%i
 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf
 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf
Ligne 1816: Ligne 1381:
 KillMode=mixed KillMode=mixed
 PrivateTmp=true PrivateTmp=true
 +OOMPolicy=continue
  
 [Install] [Install]
Ligne 1845: Ligne 1411:
  
 <code> <code>
-[root@centos8 ~]# cp /usr/lib/systemd/system/httpd@.service /usr/lib/systemd/system/httpd@instance01.service +[root@redhat9 ~]# cp /usr/lib/systemd/system/httpd@.service /usr/lib/systemd/system/httpd@instance01.service 
-[root@centos8 ~]# cp /usr/lib/systemd/system/httpd@.service /usr/lib/systemd/system/httpd@instance02.service+ 
 +[root@redhat9 ~]# cp /usr/lib/systemd/system/httpd@.service /usr/lib/systemd/system/httpd@instance02.service
 </code> </code>
  
Ligne 1852: Ligne 1419:
  
 <code> <code>
-[root@centos8 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance01.conf +[root@redhat9 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance01.conf 
-[root@centos8 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance02.conf+ 
 +[root@redhat9 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance02.conf
 </code> </code>
  
Ligne 1859: Ligne 1427:
  
 <code> <code>
-[root@centos8 ~]# vi /etc/httpd/conf/instance01.conf  +[root@redhat9 ~]# vi /etc/httpd/conf/instance01.conf  
-[root@centos8 ~]# more /etc/httpd/conf/instance01.conf + 
 +[root@redhat9 ~]# more /etc/httpd/conf/instance01.conf 
 # #
 # This is the main Apache HTTP server configuration file.  It contains the # This is the main Apache HTTP server configuration file.  It contains the
Ligne 1901: Ligne 1470:
 # directive. # directive.
 # #
-# Change this to Listen on specific IP addresses as shown below to  +# Change this to Listen on specific IP address, but note that if 
-prevent Apache from glomming onto all bound IP addresses.+# httpd.service is enabled to run at boot time, the address may not be 
 +available when the service starts.  See the httpd.service(8) man 
 +# page for more information.
 # #
 #Listen 12.34.56.78:80 #Listen 12.34.56.78:80
 Listen 8008 Listen 8008
 PidFile /var/run/httpd/instance01.pid PidFile /var/run/httpd/instance01.pid
- 
 # #
 # Dynamic Shared Object (DSO) Support # Dynamic Shared Object (DSO) Support
Ligne 1914: Ligne 1484:
 # have to place corresponding `LoadModule' lines at this location so the # have to place corresponding `LoadModule' lines at this location so the
 # directives contained in it are actually available _before_ they are used. # directives contained in it are actually available _before_ they are used.
-# Statically compiled modules (those listed by `httpd -l') do not need 
-# to be loaded here. 
-# 
-# Example: 
-# LoadModule foo_module modules/mod_foo.so 
 --More--(19%) --More--(19%)
 +[q]
 </code>  </code> 
  
Ligne 1925: Ligne 1491:
  
 <code> <code>
-[root@centos8 ~]# vi /etc/httpd/conf/instance02.conf  +[root@redhat9 ~]# vi /etc/httpd/conf/instance02.conf  
-[root@centos8 ~]# more /etc/httpd/conf/instance02.conf + 
 +[root@redhat9 ~]# more /etc/httpd/conf/instance02.conf 
 # #
 # This is the main Apache HTTP server configuration file.  It contains the # This is the main Apache HTTP server configuration file.  It contains the
Ligne 1967: Ligne 1534:
 # directive. # directive.
 # #
-# Change this to Listen on specific IP addresses as shown below to  +# Change this to Listen on specific IP address, but note that if 
-prevent Apache from glomming onto all bound IP addresses.+# httpd.service is enabled to run at boot time, the address may not be 
 +available when the service starts.  See the httpd.service(8) man 
 +# page for more information.
 # #
 #Listen 12.34.56.78:80 #Listen 12.34.56.78:80
-Listen 8009 +Listen 8009
 PidFile /var/run/httpd/instance02.pid PidFile /var/run/httpd/instance02.pid
 +
 # #
 # Dynamic Shared Object (DSO) Support # Dynamic Shared Object (DSO) Support
Ligne 1979: Ligne 1549:
 # have to place corresponding `LoadModule' lines at this location so the # have to place corresponding `LoadModule' lines at this location so the
 # directives contained in it are actually available _before_ they are used. # directives contained in it are actually available _before_ they are used.
-# Statically compiled modules (those listed by `httpd -l') do not need 
-# to be loaded here. 
-# 
-# Example: 
-# LoadModule foo_module modules/mod_foo.so 
 --More--(19%) --More--(19%)
 +[q]
 </code> </code>
  
Ligne 1990: Ligne 1556:
  
 <code> <code>
-[root@centos8 ~]# systemctl start httpd@instance01.service +[root@redhat9 ~]# systemctl start httpd@instance01.service 
-[root@centos8 ~]# systemctl status httpd@instance01.service+ 
 +[root@redhat9 ~]# systemctl status httpd@instance01.service
 ● httpd@instance01.service - The Apache HTTP Server ● httpd@instance01.service - The Apache HTTP Server
-   Loaded: loaded (/usr/lib/systemd/system/httpd@instance01.service; disabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd@instance01.service; disabled; preset: disabled) 
-   Active: active (running) since Mon 2021-06-07 01:40:43 EDT7s ago +     Active: active (running) since Thu 2024-09-26 15:14:25 CEST9s ago 
-     Docs: man:httpd@.service(8) +       Docs: man:httpd@.service(8) 
-  Process: 43854 ExecStartPre=/bin/chown root.apache /run/httpd/instance-instance01 (code=exited, status=0/SUCCESS) +    Process: 7424 ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-instance01 (code=exited, status=0/SUCCESS) 
-  Process: 43852 ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-instance01 (code=exited, status=0/SUCCESS) +    Process: 7425 ExecStartPre=/bin/chown root.apache /run/httpd/instance-instance01 (code=exited, status=0/SUCCESS) 
- Main PID: 43856 (httpd) +    Process: 7426 ExecStartPre=/bin/mkdir -m 700 -p /var/lib/httpd/instance-instance01 (code=exited, status=0/SUCCESS) 
-   Status: "Started, listening onport 8008+    Process: 7427 ExecStartPre=/bin/chown apache.apache /var/lib/httpd/instance-instance01 (code=exited, status=0/SUCCESS) 
-    Tasks: 213 (limit: 23719+   Main PID: 7429 (httpd) 
-   Memory: 43.6M +     Status: "Total requests0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec
-   CGroup: /system.slice/system-httpd.slice/httpd@instance01.service +      Tasks: 177 (limit: 48800
-           ├─43856 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +     Memory: 42.1M 
-           ├─43857 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +        CPU: 122ms 
-           ├─43858 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +     CGroup: /system.slice/system-httpd.slice/httpd@instance01.service 
-           ├─43859 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +             ├─7429 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf 
-           └─43860 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf+             ├─7430 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf 
 +             ├─7431 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf 
 +             ├─7432 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf 
 +             └─7433 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf 
 + 
 +Sep 26 15:14:24 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
 +Sep 26 15:14:25 redhat9.ittraining.loc httpd[7429]: Server configured, listening on: port 8008 
 +Sep 26 15:14:25 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server. 
 + 
 +[root@redhat9 ~]# systemctl start httpd@instance02.service
  
-Jun 07 01:40:43 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +[root@redhat9 ~]# systemctl status httpd@instance02.service
-Jun 07 01:40:43 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 07 01:40:43 centos8.ittraining.loc httpd[43856]: Server configured, listening on: port 8008 +
-[root@centos8 ~]# systemctl start httpd@instance02.service +
-[root@centos8 ~]# systemctl status httpd@instance02.service+
 ● httpd@instance02.service - The Apache HTTP Server ● httpd@instance02.service - The Apache HTTP Server
-   Loaded: loaded (/usr/lib/systemd/system/httpd@instance02.service; disabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd@instance02.service; disabled; preset: disabled) 
-   Active: active (running) since Mon 2021-06-07 01:36:45 EDT4min 24s ago +     Active: active (running) since Thu 2024-09-26 15:14:43 CEST7s ago 
-     Docs: man:httpd@.service(8) +       Docs: man:httpd@.service(8) 
-  Process: 43568 ExecStartPre=/bin/chown root.apache /run/httpd/instance-instance02 (code=exited, status=0/SUCCESS) +    Process: 7614 ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-instance02 (code=exited, status=0/SUCCESS) 
-  Process: 43566 ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-instance02 (code=exited, status=0/SUCCESS) +    Process: 7615 ExecStartPre=/bin/chown root.apache /run/httpd/instance-instance02 (code=exited, status=0/SUCCESS) 
- Main PID: 43569 (httpd) +    Process: 7616 ExecStartPre=/bin/mkdir -m 700 -p /var/lib/httpd/instance-instance02 (code=exited, status=0/SUCCESS) 
-   Status: "Running, listening on: port 8009" +    Process: 7617 ExecStartPre=/bin/chown apache.apache /var/lib/httpd/instance-instance02 (code=exited, status=0/SUCCESS) 
-    Tasks: 213 (limit: 23719+   Main PID: 7618 (httpd) 
-   Memory: 43.6M +     Status: "Started, listening on: port 8009" 
-   CGroup: /system.slice/system-httpd.slice/httpd@instance02.service +      Tasks: 177 (limit: 48800
-           ├─43569 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +     Memory: 42.1M 
-           ├─43571 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +        CPU: 113ms 
-           ├─43572 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +     CGroup: /system.slice/system-httpd.slice/httpd@instance02.service 
-           ├─43573 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +             ├─7618 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf 
-           └─43574 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf+             ├─7619 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf 
 +             ├─7620 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf 
 +             ├─7621 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf 
 +             └─7622 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf
  
-Jun 07 01:36:45 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +Sep 26 15:14:43 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-Jun 07 01:36:45 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +Sep 26 15:14:43 redhat9.ittraining.loc httpd[7618]: Server configured, listening on: port 8009 
-Jun 07 01:36:45 centos8.ittraining.loc httpd[43569]: Server configured, listening on: port 8009+Sep 26 15:14:43 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server.
 </code> </code>
  
Ligne 2041: Ligne 1616:
  
 <code> <code>
-[root@centos8 ~]# systemctl status httpd.service +[root@redhat9 ~]# systemctl status httpd.service 
-● httpd.service - The Apache HTTP Server +○ httpd.service - The Apache HTTP Server 
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled) 
-   Active: inactive (dead) +     Active: inactive (dead) 
-     Docs: man:httpd.service(8)+       Docs: man:httpd.service(8)
  
-Jun 07 18:27:25 centos8.ittraining.loc httpd[58535]: Server configured, listening on: port 80 +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-Jun 07 18:27:29 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +Sep 26 15:01:28 redhat9.ittraining.loc httpd[7187]: Server configured, listening onport 80 
-Jun 07 18:27:30 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded. +Sep 26 15:01:28 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server. 
-Jun 07 18:27:30 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server+Sep 26 15:02:54 redhat9.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... 
-Jun 07 18:27:32 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: httpd.service: Deactivated successfully
-Jun 07 18:27:32 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +Sep 26 15:02:55 redhat9.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.
-Jun 07 18:27:32 centos8.ittraining.loc httpd[58760]: Server configured, listening on: port 80 +
-Jun 07 18:27:34 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +
-Jun 07 18:27:36 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded+
-Jun 07 18:27:36 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server.+
  
-[root@centos8 ~]# systemctl mask httpd.service+[root@redhat9 ~]# systemctl mask httpd.service
 Created symlink /etc/systemd/system/httpd.service → /dev/null. Created symlink /etc/systemd/system/httpd.service → /dev/null.
  
-[root@centos8 ~]# systemctl enable httpd.service+[root@redhat9 ~]# systemctl enable httpd.service
 Failed to enable unit: Unit file /etc/systemd/system/httpd.service is masked. Failed to enable unit: Unit file /etc/systemd/system/httpd.service is masked.
  
-[root@centos8 ~]# systemctl start httpd.service+[root@redhat9 ~]# systemctl start httpd.service
 Failed to start httpd.service: Unit httpd.service is masked. Failed to start httpd.service: Unit httpd.service is masked.
 </code> </code>
Ligne 2071: Ligne 1642:
  
 <code> <code>
-[root@centos8 ~]# systemctl unmask httpd.service +[root@redhat9 ~]# systemctl unmask httpd.service 
-Removed /etc/systemd/system/httpd.service.+Removed "/etc/systemd/system/httpd.service".
  
-[root@centos8 ~]# systemctl enable httpd.service+[root@redhat9 ~]# systemctl enable httpd.service
 Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service. Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
  
-[root@centos8 ~]# systemctl start httpd.service+[root@redhat9 ~]# systemctl start httpd.service
  
-[root@centos8 ~]# systemctl status httpd.service+[root@redhat9 ~]# systemctl status httpd.service
 ● httpd.service - The Apache HTTP Server ● httpd.service - The Apache HTTP Server
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; preset: disabled) 
-   Active: active (running) since Mon 2021-06-07 18:30:59 EDT5s ago +     Active: active (running) since Thu 2024-09-26 15:17:38 CEST18s ago 
-     Docs: man:httpd.service(8) +       Docs: man:httpd.service(8) 
- Main PID: 59101 (httpd) +   Main PID: 7896 (httpd) 
-   Status: "Started, listening onport 80+     Status: "Total requests0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec
-    Tasks: 213 (limit: 23719+      Tasks: 177 (limit: 48800
-   Memory: 39.4M +     Memory: 40.1M 
-   CGroup: /system.slice/httpd.service +        CPU: 99ms 
-           ├─59101 /usr/sbin/httpd -DFOREGROUND +     CGroup: /system.slice/httpd.service 
-           ├─59102 /usr/sbin/httpd -DFOREGROUND +             ├─7896 /usr/sbin/httpd -DFOREGROUND 
-           ├─59103 /usr/sbin/httpd -DFOREGROUND +             ├─7897 /usr/sbin/httpd -DFOREGROUND 
-           ├─59104 /usr/sbin/httpd -DFOREGROUND +             ├─7898 /usr/sbin/httpd -DFOREGROUND 
-           └─59105 /usr/sbin/httpd -DFOREGROUND +             ├─7899 /usr/sbin/httpd -DFOREGROUND 
- +             └─7900 /usr/sbin/httpd -DFOREGROUND
-Jun 07 18:30:59 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 07 18:30:59 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 07 18:31:00 centos8.ittraining.loc httpd[59101]: Server configured, listening on: port 80 +
-</code> +
- +
-=====Arrêt du Système===== +
- +
-Sous RHEL / CentOS 8 les commandes **halt**, **poweroff**, **reboot** et **shutdown** sont des liens symboliques vers **/bin/systemctl** : +
- +
-<code> +
-[root@centos8 ~]# ls -l /usr/sbin/shutdown /usr/sbin/halt /usr/sbin/poweroff /usr/sbin/reboot +
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/halt -> ../bin/systemctl +
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/poweroff -> ../bin/systemctl +
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/reboot -> ../bin/systemctl +
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/shutdown -> ../bin/systemctl +
-</code> +
- +
-La manière recommendée d'utiliser ces commandes est donc : +
- +
-  * systemctl halt +
-  * systemctl poweroff +
-  * systemctl reboot +
-  * systemctl shutdown +
- +
-Il est cependant toujours possibles d'utiliser les commandes **halt**, **poweroff**, **reboot** et **shutdown**. +
- +
-====La Commande shutdown==== +
- +
-Lors de l'arrêt de la machine, Linux procède, entre autre, aux tâches suivantes : +
- +
-  * Il previent les utilisateurs,  +
-  * Il arrête tous les services, +
-  * Il inscrit toutes les données sur disque, +
-  * Il démonte les systèmes de fichiers. +
- +
-La commande utilisée pour arrêter le système est la commande **shutdown** : +
- +
-  shutdown [-t sec] [-HPrhkc] heure [message] +
- +
-===Options de la commande=== +
- +
-Les options de cette commande sont : +
- +
-<code> +
-[root@centos8 ~]# shutdown --help +
-shutdown [OPTIONS...] [TIME] [WALL...] +
- +
-Shut down the system. +
- +
-     --help      Show this help +
-  -H --halt      Halt the machine +
-  -P --poweroff  Power-off the machine +
-  -r --reboot    Reboot the machine +
-  -h             Equivalent to --poweroff, overridden by --halt +
-  -k             Don't halt/power-off/reboot, just send warnings +
-     --no-wall   Don't send wall message before halt/power-off/reboot +
-  -c             Cancel a pending shutdown +
-</code> +
- +
-L'option **heure** peut prendre plusieurs valeurs : +
- +
-^ Valeur ^ Description ^ +
-| hh:mm | L'heure à laquelle l'opération aura lieu | +
-| +m | Nombre de minutes avant que l'opération aura lieu. Si aucune valeur n'est spécifiée, la valeur par défaut est +1 | +
-| now | L'opération est immédiate. now est un alias de +0 | +
- +
-<WRAP center round important 60%> +
-**Important** : Si l'opération est programmée pour dans moins de 5 minutes, les connexions supplémentaires sont interdites, y comprises les tentatives de connexion de root.  +
-</WRAP> +
- +
-L'option **-t** est utilisée pour accorder un temps de grâce : +
- +
-<code> +
-[root@centos8 ~]# date && shutdown -t 60 -k +
-Mon Jun  7 18:58:26 EDT 2021 +
-Shutdown scheduled for Mon 2021-06-07 18:59:26 EDT, use 'shutdown -c' to cancel. +
-</code> +
- +
-==== La Commande reboot==== +
- +
-Cette commande redémarre le système. +
- +
-===Options de la commande=== +
- +
-Les options de cette commande sont : +
- +
-<code> +
-[root@centos8 ~]# reboot --help +
-reboot [OPTIONS...] [ARG] +
- +
-Reboot the system. +
- +
-     --help      Show this help +
-     --halt      Halt the machine +
-  -p --poweroff  Switch off the machine +
-     --reboot    Reboot the machine +
-  -f --force     Force immediate halt/power-off/reboot +
-  -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record +
-  -d --no-wtmp   Don't write wtmp record +
-     --no-wall   Don't send wall message before halt/power-off/reboot +
-</code> +
- +
-==== La Commande halt==== +
- +
-Cette commande arrête le système. +
- +
-===Options de la commande=== +
- +
-Les options de cette commande sont : +
- +
-<code> +
-[root@centos8 ~]# halt --help +
-halt [OPTIONS...] +
- +
-Halt the system. +
- +
-     --help      Show this help +
-     --halt      Halt the machine +
-  -p --poweroff  Switch off the machine +
-     --reboot    Reboot the machine +
-  -f --force     Force immediate halt/power-off/reboot +
-  -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record +
-  -d --no-wtmp   Don't write wtmp record +
-     --no-wall   Don't send wall message before halt/power-off/reboot +
-</code> +
- +
-==== La Commande poweroff==== +
- +
-Cette commande arrête le système et coupe l'alimentation électrique.  +
- +
-===Options de la commande=== +
- +
-Les options de cette commande sont : +
- +
-<code> +
-[root@centos8 ~]# poweroff --help +
-poweroff [OPTIONS...] +
- +
-Power off the system.+
  
-     --help      Show this help +Sep 26 15:17:38 redhat9.ittraining.loc systemd[1]: Starting The Apache HTTP Server... 
-     --halt      Halt the machine +Sep 26 15:17:38 redhat9.ittraining.loc httpd[7896]: Server configuredlistening on: port 80 
-  -p --poweroff  Switch off the machine +Sep 26 15:17:38 redhat9.ittraining.loc systemd[1]: Started The Apache HTTP Server.
-     --reboot    Reboot the machine +
-  -f --force     Force immediate halt/power-off/reboot +
-  -w --wtmp-only Don't halt/power-off/rebootjust write wtmp record +
-  -d --no-wtmp   Don't write wtmp record +
-     --no-wall   Don't send wall message before halt/power-off/reboot+
 </code> </code>
  
 ----- -----
 Copyright © 2024 Hugh Norris. Copyright © 2024 Hugh Norris.
Menu