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:rh134:l105 [2024/10/24 03:48] adminelearning:workbooks:redhat:rh134:l105 [2024/10/24 09:58] (Version actuelle) admin
Ligne 48: Ligne 48:
         * 4.1 - Contrôler les dépendances d'une Cible         * 4.1 - Contrôler les dépendances d'une Cible
         * 4.2 - La Cible par Défaut         * 4.2 - La Cible par Défaut
-      * LAB #5 - Gestion des Services 
-        * 5.1 - Gestion des Instances Uniques 
-        * 5.2 - Gestion d'Instances Multiples 
-        * 5.3 - Interdire la Modification du Statut d'un Service 
     * Arrêt Système du Système     * Arrêt Système du Système
       * La Commande shutdown       * La Commande shutdown
Ligne 132: Ligne 128:
  
 <code> <code>
-[root@centos8 ~]# cat /boot/grub2/grub.cfg +[root@redhat9 ~]# cat /boot/grub2/grub.cfg 
 # #
 # DO NOT EDIT THIS FILE # DO NOT EDIT THIS FILE
Ligne 209: Ligne 205:
 set tuned_initrd="" set tuned_initrd=""
 ### END /etc/grub.d/00_tuned ### ### 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 ### ### BEGIN /etc/grub.d/01_users ###
Ligne 258: Ligne 216:
 fi fi
 ### END /etc/grub.d/01_users ### ### END /etc/grub.d/01_users ###
 +
 +### BEGIN /etc/grub.d/08_fallback_counting ###
 +insmod increment
 +# Check if boot_counter exists and boot_success=0 to activate this behaviour.
 +if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
 +  # if countdown has ended, choose to boot rollback deployment,
 +  # i.e. default=1 on OSTree-based systems.
 +  if  [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
 +    set default=1
 +    set boot_counter=-1
 +  # otherwise decrement boot_counter
 +  else
 +    decrement boot_counter
 +  fi
 +  save_env boot_counter
 +fi
 +### END /etc/grub.d/08_fallback_counting ###
  
 ### BEGIN /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_linux ###
 insmod part_msdos insmod part_msdos
-insmod ext2+insmod xfs
 set root='hd0,msdos1' set root='hd0,msdos1'
 if [ x$feature_platform_search_hint = xy ]; then 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+  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  6f6c5bb9-30be-4734-bc23-03fed8541616
 else else
-  search --no-floppy --fs-uuid --set=root 2ae4c035-9244-458c-82c5-a49ae169cdb6+  search --no-floppy --fs-uuid --set=root 6f6c5bb9-30be-4734-bc23-03fed8541616
 fi fi
 insmod part_msdos insmod part_msdos
-insmod ext2+insmod xfs
 set boot='hd0,msdos1' set boot='hd0,msdos1'
 if [ x$feature_platform_search_hint = xy ]; then 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+  search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  6f6c5bb9-30be-4734-bc23-03fed8541616
 else else
-  search --no-floppy --fs-uuid --set=boot 2ae4c035-9244-458c-82c5-a49ae169cdb6+  search --no-floppy --fs-uuid --set=boot 6f6c5bb9-30be-4734-bc23-03fed8541616
 fi fi
  
Ligne 282: Ligne 257:
 # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and # 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 # populates the boot menu. Please refer to the Boot Loader Specification documentation
-# for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.+# for the files format: https://systemd.io/BOOT_LOADER_SPECIFICATION/.
  
-set default_kernelopts="root=UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c ro crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet "+# The kernelopts variable should be defined in the grubenv file. But to ensure that menu 
 +# entries populated from BootLoaderSpec files that use this variable work correctly even 
 +# without a grubenv file, define a fallback kernelopts variable if this has not been set
 +
 +# The kernelopts variable in the grubenv file can be modified using the grubby tool or by 
 +# executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX 
 +# and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both 
 +# the kernelopts variable in the grubenv file and the fallback kernelopts variable. 
 +if [ -z "${kernelopts}" ]; then 
 +  set kernelopts="root=/dev/mapper/rhel-root ro crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet " 
 +fi
  
 insmod blscfg insmod blscfg
 blscfg blscfg
 ### END /etc/grub.d/10_linux ### ### END /etc/grub.d/10_linux ###
 +
 +### BEGIN /etc/grub.d/10_reset_boot_success ###
 +# Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
 +if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
 +  set menu_hide_ok=1
 +else
 +  set menu_hide_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 than once
 +elif [ "${boot_indeterminate}" = "1" ]; then
 +  set boot_indeterminate=2
 +fi
 +# Reset boot_success for current boot 
 +set boot_success=0
 +save_env boot_success boot_indeterminate
 +### END /etc/grub.d/10_reset_boot_success ###
 +
 +### BEGIN /etc/grub.d/12_menu_auto_hide ###
 +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 "${menu_hide_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/12_menu_auto_hide ###
 +
 +### BEGIN /etc/grub.d/14_menu_show_once ###
 +if [ x$feature_timeout_style = xy ]; then
 +  if [ "${menu_show_once_timeout}" ]; then
 +    set timeout_style=menu
 +    set timeout="${menu_show_once_timeout}"
 +    unset menu_show_once_timeout
 +    save_env menu_show_once_timeout
 +  fi
 +fi
 +### END /etc/grub.d/14_menu_show_once ###
  
 ### BEGIN /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_linux_xen ###
Ligne 300: Ligne 337:
  
 ### BEGIN /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/30_uefi-firmware ###
 +if [ "$grub_platform" = "efi" ]; then
 +        menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
 +                fwsetup
 +        }
 +fi
 ### END /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ###
 +
 +### BEGIN /etc/grub.d/35_fwupd ###
 +### END /etc/grub.d/35_fwupd ###
  
 ### BEGIN /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/40_custom ###
Ligne 312: Ligne 357:
   source ${config_directory}/custom.cfg   source ${config_directory}/custom.cfg
 elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
-  source $prefix/custom.cfg;+  source $prefix/custom.cfg
 fi fi
 ### END /etc/grub.d/41_custom ### ### END /etc/grub.d/41_custom ###
Ligne 327: Ligne 372:
  
 <code> <code>
-[root@centos8 ~]# cat /boot/grub2/device.map+[root@redhat9 ~]# cat /boot/grub2/device.map
 # this device map was generated by anaconda # this device map was generated by anaconda
 (hd0)      /dev/sda (hd0)      /dev/sda
-(hd1)      /dev/sda 
 </code> </code>
  
Ligne 338: Ligne 382:
  
 <code> <code>
-[root@centos8 ~]# cat /etc/default/grub+[root@redhat9 ~]# cat /etc/default/grub
 GRUB_TIMEOUT=5 GRUB_TIMEOUT=5
 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
Ligne 344: Ligne 388:
 GRUB_DISABLE_SUBMENU=true GRUB_DISABLE_SUBMENU=true
 GRUB_TERMINAL_OUTPUT="console" GRUB_TERMINAL_OUTPUT="console"
-GRUB_CMDLINE_LINUX="crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet"+GRUB_CMDLINE_LINUX="crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet"
 GRUB_DISABLE_RECOVERY="true" GRUB_DISABLE_RECOVERY="true"
 GRUB_ENABLE_BLSCFG=true GRUB_ENABLE_BLSCFG=true
Ligne 370: Ligne 414:
  
 <code> <code>
-[root@centos8 ~]#  ls -l /etc/grub.d +[root@redhat9 ~]# ls -l /etc/grub.d 
-total 92 +total 108 
--rwxr-xr-x. 1 root root  8958 Mar  2 15:51 00_header +-rwxr-xr-x. 1 root root  9346 Jun 27 12:12 00_header 
--rwxr-xr-x. 1 root root  1043 Jun 15  2020 00_tuned +-rwxr-xr-x. 1 root root  1046 Feb 22  2024 00_tuned 
--rwxr-xr-x. 1 root root   232 Mar  2 15:51 01_users +-rwxr-xr-x. 1 root root   236 Jun 27 12:12 01_users 
--rwxr-xr-x. 1 root root   832 Mar  2 15:51 08_fallback_counting +-rwxr-xr-x. 1 root root   835 Jun 27 12:12 08_fallback_counting 
--rwxr-xr-x. 1 root root 14088 Mar  2 15:51 10_linux +-rwxr-xr-x. 1 root root 19665 Jun 27 12:12 10_linux 
--rwxr-xr-x. 1 root root   830 Mar  2 15:51 10_reset_boot_success +-rwxr-xr-x. 1 root root   833 Jun 27 12:12 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   892 Jun 27 12:12 12_menu_auto_hide 
--rwxr-xr-x. 1 root root 11696 Mar  2 15:51 20_linux_xen +-rwxr-xr-x. 1 root root   410 Jun 27 12:12 14_menu_show_once 
--rwxr-xr-x. 1 root root  2559 Mar  2 15:51 20_ppc_terminfo +-rwxr-xr-x. 1 root root 13613 Jun 27 12:12 20_linux_xen 
--rwxr-xr-x. 1 root root 10670 Mar  2 15:51 30_os-prober +-rwxr-xr-x. 1 root root  2562 Jun 27 12:12 20_ppc_terminfo 
--rwxr-xr-x. 1 root root  1412 Mar  2 15:51 30_uefi-firmware +-rwxr-xr-x. 1 root root 10869 Jun 27 12:12 30_os-prober 
--rwxr-xr-x. 1 root root   214 Mar  2 15:51 40_custom +-rwxr-xr-x. 1 root root  1122 Jun 27 12:12 30_uefi-firmware 
--rwxr-xr-x. 1 root root   216 Mar  2 15:51 41_custom +-rwxr-xr-x. 1 root root   725 Feb 19  2024 35_fwupd 
--rw-r--r--. 1 root root   483 Mar  2 15:51 README+-rwxr-xr-x. 1 root root   218 Jun 27 12:12 40_custom 
 +-rwxr-xr-x. 1 root root   219 Jun 27 12:12 41_custom 
 +-rw-r--r--. 1 root root   483 Jun 27 12:12 README
 </code> </code>
  
Ligne 400: Ligne 446:
  
 <code> <code>
-[root@centos8 ~]# cat /boot/grub2/grubenv+[root@redhat9 ~]# cat /boot/grub2/grubenv
 # GRUB Environment Block # GRUB Environment Block
-saved_entry=de79af4f226d480fa7d3fec4cabbf97a-4.18.0-240.22.1.el8_3.x86_64 +# WARNING: Do not edit this file by tools other than grub-editenv!!! 
-kernelopts=root=UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c ro crashkernel=auto resume=UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 rhgb quiet +saved_entry=5a35a3eb625c45cea1d33535723e791f-5.14.0-427.37.1.el9_4.x86_64 
 +menu_auto_hide=1
 boot_success=1 boot_success=1
 boot_indeterminate=0 boot_indeterminate=0
-########################################################################################################################################## +###################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################[root@redhat9 ~]#
-########################################################################################################################################## +
-########################################################################################################################################## +
-########################################################################################################################################## +
-########################################################################################################################################## +
-############################################################[root@centos8 ~]#+
 </code> </code>
  
Ligne 471: Ligne 513:
  
 <code> <code>
-[root@centos8 ~]# cp /boot/initramfs-4.18.0-240.22.1.el8_3.x86_64.img /tmp/custom +[root@redhat9 ~]# cp /boot/initramfs-`uname -r`.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@redhat9 ~]# cd /tmp
  
-[root@centos8 tmp]# gunzip custom.gz +[root@redhat9 tmp]# ls custom 
- +custom
-[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> </code>
  
Ligne 506: Ligne 526:
  
 <code> <code>
-[root@centos8 tmp]# lsinitrd custom | more +[root@redhat9 tmp]# lsinitrd custom | more 
-Image: custom: 25M+Image: custom: 54M
 ======================================================================== ========================================================================
 Early CPIO image Early CPIO image
 ======================================================================== ========================================================================
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 +drwxr-xr-x   3 root     root            0 Jan  4  2024 
--rw-r--r--   1 root     root            2 Feb 22 10:57 early_cpio +-rw-r--r--   1 root     root            2 Jan  4  2024 early_cpio 
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 kernel +drwxr-xr-x   3 root     root            0 Jan  4  2024 kernel 
-drwxr-xr-x   3 root     root            0 Feb 22 10:57 kernel/x86 +drwxr-xr-x   3 root     root            0 Jan  4  2024 kernel/x86 
-drwxr-xr-x   2 root     root            0 Feb 22 10:57 kernel/x86/microcode +drwxr-xr-x   2 root     root            0 Jan  4  2024 kernel/x86/microcode 
--rw-r--r--   1 root     root       109568 Feb 22 10:57 kernel/x86/microcode/GenuineIntel.bin+-rw-r--r--   1 root     root        28672 Jan  4  2024 kernel/x86/microcode/GenuineIntel.bin
 ======================================================================== ========================================================================
-Version: dracut-049-95.git20200804.el8_3.4+Version: dracut-057-53.git20240104.el9
  
-Arguments: -f --kver '4.18.0-240.22.1.el8_3.x86_64'+Arguments:  -f -v
  
 dracut modules: dracut modules:
Ligne 526: Ligne 546:
 systemd systemd
 systemd-initrd systemd-initrd
 +systemd-sysusers
 nss-softokn nss-softokn
-rngd+dbus-broker 
 +dbus
 i18n i18n
-network-legacy+network-manager
 network network
 ifcfg ifcfg
Ligne 535: Ligne 557:
 plymouth plymouth
 prefixdevname prefixdevname
 +dm
 kernel-modules kernel-modules
 kernel-modules-extra kernel-modules-extra
 kernel-network-modules kernel-network-modules
 +lvm
 +qemu
 +qemu-net
 resume resume
 rootfs-block rootfs-block
 terminfo terminfo
 udev-rules udev-rules
-biosdevname+virtiofs
 dracut-systemd dracut-systemd
 usrmount usrmount
 base base
 fs-lib fs-lib
-memstrack 
 microcode_ctl-fw_dir_override microcode_ctl-fw_dir_override
 shutdown shutdown
 ======================================================================== ========================================================================
-drwxr-xr-x  12 root     root            0 Feb 22 10:57 +drwxr-xr-x  12 root     root            0 Jan  4  2024 
-crw-r--r--   1 root     root       5,   Feb 22 10:57 dev/console +crw-r--r--   1 root     root       5,   Jan  4  2024 dev/console 
-crw-r--r--   1 root     root       1,  11 Feb 22 10:57 dev/kmsg +crw-r--r--   1 root     root       1,  11 Jan  4  2024 dev/kmsg 
-crw-r--r--   1 root     root       1,   Feb 22 10:57 dev/null +crw-r--r--   1 root     root       1,   Jan  4  2024 dev/null 
-crw-r--r--   1 root     root       1,   Feb 22 10:57 dev/random +crw-r--r--   1 root     root       1,   Jan  4  2024 dev/random 
-crw-r--r--   1 root     root       1,   Feb 22 10:57 dev/urandom +crw-r--r--   1 root     root       1,   Jan  4  2024 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-- --More--
 </code> </code>
Ligne 569: Ligne 587:
 ===Le script init=== ===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** :+Red Hat 9 utilise le système de démarrage **systemd**. Pour cette raison le script init est un lien symbolique vers **/usr/lib/systemd/systemd** :
  
 <code> <code>
-[root@centos8 tmp]# lsinitrd custom | grep usr/lib/systemd/systemd | grep init +[root@redhat9 tmp]# lsinitrd custom | grep usr/lib/systemd/systemd | grep init 
-lrwxrwxrwx   1 root     root           23 Feb 22 10:57 init -> usr/lib/systemd/systemd+lrwxrwxrwx   1 root     root           23 Jan  4  2024 init -> usr/lib/systemd/systemd
 </code> </code>
  
Ligne 581: Ligne 599:
  
 <code> <code>
-[root@centos8 tmp]# lsinitrd /boot/initramfs-$(uname -r).img  /etc/ld.so.conf+[root@redhat9 tmp]# lsinitrd /boot/initramfs-$(uname -r).img  /etc/ld.so.conf
 include ld.so.conf.d/*.conf include ld.so.conf.d/*.conf
 </code> </code>
Ligne 642: Ligne 660:
  
 <code> <code>
-[root@centos8 ~]# ls -l /usr/lib/systemd/system/runlevel* +[root@redhat9 tmp]# 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 690:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-units +[root@redhat9 tmp]# 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 waiting   Arbitrary Executable File Formats File System Automount Point                 
-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 1 
-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 2 
-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 1                                                               +  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 2                                                               +  sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device                 loaded active plugged   QEMU_HARDDISK 1 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb10.device                loaded active plugged   QEMU_HARDDISK redhat.ittraining.loc 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb11.device                loaded active plugged   QEMU_HARDDISK my_ext4 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb12.device                loaded active plugged   QEMU_HARDDISK 12 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb2.device                 loaded active plugged   QEMU_HARDDISK 2 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb3.device                 loaded active plugged   QEMU_HARDDISK 3 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb4.device                 loaded active plugged   QEMU_HARDDISK 4 
-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-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb5.device                 loaded active plugged   QEMU_HARDDISK redhat.ittraining.loc 
-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-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb6.device                 loaded active plugged   QEMU_HARDDISK 6 
-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-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb7.device                 loaded active plugged   QEMU_HARDDISK 7 
-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-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb8.device                 loaded active plugged   QEMU_HARDDISK redhat.ittraining.loc 
-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                                                               +  sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb9.device                 loaded active plugged   QEMU_HARDDISK 9 
-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                                                               +  sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb.device                      loaded active plugged   QEMU_HARDDISK 
-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                                                               +  sys-devices-pci0000:00-0000:00:07.0-ata4-host4-target4:0:0-4:0:0:0-block-sdc.device                      loaded active plugged   QEMU_HARDDISK 
-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                                                               +  sys-devices-pci0000:00-0000:00:07.0-ata5-host5-target5:0:0-5:0:0:0-block-sdd.device                      loaded active plugged   QEMU_HARDDISK 
-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                                                                 +  sys-devices-pci0000:00-0000:00:12.0-virtio1-net-ens18.device                                             loaded active plugged   Virtio network device 
-sys-devices-platform-serial8250-tty-ttyS0.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0                                    +  sys-devices-platform-serial8250-tty-ttyS0.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS0 
-sys-devices-platform-serial8250-tty-ttyS1.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1                                    +  sys-devices-platform-serial8250-tty-ttyS1.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1 
-sys-devices-platform-serial8250-tty-ttyS2.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2                                    +  sys-devices-platform-serial8250-tty-ttyS2.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2 
-sys-devices-platform-serial8250-tty-ttyS3.device                                          loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3                                    +  sys-devices-platform-serial8250-tty-ttyS3.device                                                         loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3 
-sys-devices-virtual-block-dm\x2d0.device                                                  loaded active plugged   /sys/devices/virtual/block/dm-0                                               +  sys-devices-virtual-block-dm\x2d0.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-0 
-sys-devices-virtual-block-dm\x2d1.device                                                  loaded active plugged   /sys/devices/virtual/block/dm-1                                               +  sys-devices-virtual-block-dm\x2d1.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-1 
-sys-devices-virtual-net-virbr0.device                                                     loaded active plugged   /sys/devices/virtual/net/virbr0                                               +  sys-devices-virtual-block-dm\x2d2.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-2 
-sys-devices-virtual-net-virbr0\x2dnic.device                                              loaded active plugged   /sys/devices/virtual/net/virbr0-nic                                           +  sys-devices-virtual-block-dm\x2d3.device                                                                 loaded active plugged   /sys/devices/virtual/block/dm-3 
-sys-module-configfs.device                                                                loaded active plugged   /sys/module/configfs                                                          +  sys-devices-virtual-block-md1.device                                                                     loaded active plugged   /sys/devices/virtual/block/md1 
-sys-subsystem-net-devices-enp0s3.device                                                   loaded active plugged   82540EM Gigabit Ethernet Controller (PRO/1000 MT Desktop Adapter)             +  sys-devices-virtual-misc-rfkill.device                                                                   loaded active plugged   /sys/devices/virtual/misc/rfkill 
-sys-subsystem-net-devices-virbr0.device                                                   loaded active plugged   /sys/subsystem/net/devices/virbr0                                             +  sys-module-configfs.device                                                                               loaded active plugged   /sys/module/configfs 
-sys-subsystem-net-devices-virbr0\x2dnic.device                                            loaded active plugged   /sys/subsystem/net/devices/virbr0-nic                                         +  sys-module-fuse.device                                                                                   loaded active plugged   /sys/module/fuse 
--.mount                                                                                   loaded active mounted   Root Mount                                                                    +  sys-subsystem-net-devices-ens18.device                                                                   loaded active plugged   Virtio network device                                                         
-boot.mount                                                                                loaded active mounted   /boot                                                                         +  -.mount                                                                                                  loaded active mounted   Root Mount 
-dev-hugepages.mount                                                                       loaded active mounted   Huge Pages File System                                                        +  boot.mount                                                                                               loaded active mounted   /boot 
-dev-mqueue.mount                                                                          loaded active mounted   POSIX Message Queue File System                                               +  dev-hugepages.mount                                                                                      loaded active mounted   Huge Pages File System 
-run-user-1000.mount                                                                       loaded active mounted   /run/user/1000                                                                +  dev-mqueue.mount                                                                                         loaded active mounted   POSIX Message Queue File System 
-sys-kernel-config.mount                                                                   loaded active mounted   Kernel Configuration File System                                              +  run-credentials-systemd\x2dsysctl.service.mount                                                          loaded active mounted   /run/credentials/systemd-sysctl.service 
-sys-kernel-debug.mount                                                                    loaded active mounted   Kernel Debug File System                                                      +  run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount                                               loaded active mounted   /run/credentials/systemd-tmpfiles-setup.service 
-sys-kernel-tracing.mount                                                                  loaded active mounted   /sys/kernel/tracing                                                           +  run-credentials-systemd\x2dtmpfiles\x2dsetup\x2ddev.service.mount                                        loaded active mounted   /run/credentials/systemd-tmpfiles-setup-dev.service 
-var-lib-nfs-rpc_pipefs.mount                                                              loaded active mounted   RPC Pipe File System                                                          +  run-user-1000.mount                                                                                      loaded active mounted   /run/user/1000 
-cups.path                                                                                 loaded active running   CUPS Scheduler                                                                +  run-user-42.mount                                                                                        loaded active mounted   /run/user/42 
-systemd-ask-password-plymouth.path                                                        loaded active waiting   Forward Password Requests to Plymouth Directory Watch                         +  sys-fs-fuse-connections.mount                                                                            loaded active mounted   FUSE Control File System 
-systemd-ask-password-wall.path                                                            loaded active waiting   Forward Password Requests to Wall Directory Watch                             +  sys-kernel-config.mount                                                                                  loaded active mounted   Kernel Configuration File System 
-init.scope                                                                                loaded active running   System and Service Manager                                                    +  sys-kernel-debug.mount                                                                                   loaded active mounted   Kernel Debug File System 
-session-96.scope                                                                          loaded active running   Session 96 of user trainee                                                    +  sys-kernel-tracing.mount                                                                                 loaded active mounted   Kernel Trace File System                                                      
-atd.service                                                                               loaded active running   Job spooling tools                                                            +  cups.path                                                                                                loaded active running   CUPS Scheduler 
-auditd.service                                                                            loaded active running   Security Auditing Service                                                     +  systemd-ask-password-wall.path                                                                           loaded active running   Forward Password Requests to Wall Directory Watch                             
-avahi-daemon.service                                                                      loaded active running   Avahi mDNS/DNS-SD Stack                                                       +  init.scope                                                                                               loaded active running   System and Service Manager 
-chronyd.service                                                                           loaded active running   NTP client/server                                                             +  session-4.scope                                                                                          loaded active running   Session of User trainee 
-crond.service                                                                             loaded active running   Command Scheduler                                                             +  session-c1.scope                                                                                         loaded active running   Session c1 of User gdm                                                        
-cups.service                                                                              loaded active running   CUPS Scheduler                                                                +  accounts-daemon.service                                                                                  loaded active running   Accounts Service 
-dbus.service                                                                              loaded active running   D-Bus System Message Bus                                                      +  atd.service                                                                                              loaded active running   Deferred execution scheduler 
-dracut-shutdown.service                                                                   loaded active exited    Restore /run/initramfs on shutdown                                            +lines 1-55
-firewalld.service                                                                         loaded active running   firewalld - dynamic firewall daemon                                           +
-lines 1-57+
 </code> </code>
  
Ligne 736: Ligne 752:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-units --all | grep inactive | more +[root@redhat9 tmp]# 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                                                                +  dev-mapper-sdb12.device                                                                                        loaded    inactive dead      /dev/mapper/sdb12 
-  proc-sys-fs-binfmt_misc.mount                                                                                  loaded    inactive dead      Arbitrary Executable File Formats File System                                                +● home.mount                                                                                                     not-found inactive dead      home.mount 
-  sys-fs-fuse-connections.mount                                                                                  loaded    inactive dead      FUSE Control File System                                                                     +  mnt-sdb12.mount                                                                                                loaded    inactive dead      /mnt/sdb12 
-● sysroot.mount                                                                                                  not-found inactive dead      sysroot.mount                                                                                +  proc-sys-fs-binfmt_misc.mount                                                                                  loaded    inactive dead      Arbitrary Executable File Formats File System 
-  tmp.mount                                                                                                      loaded    inactive dead      Temporary Directory (/tmp)                                                                   +● sysroot.mount                                                                                                  not-found inactive dead      sysroot.mount 
-  var-lib-machines.mount                                                                                         loaded    inactive dead      Virtual Machine and Container Storage                                                        +  tmp.mount                                                                                                      loaded    inactive dead      Temporary Directory /tmp 
-  systemd-ask-password-console.path                                                                              loaded    inactive dead      Dispatch Password Requests to Console Directory Watch                                        +● var.mount                                                                                                      not-found inactive dead      var.mount 
-● apparmor.service                                                                                               not-found inactive dead      apparmor.service                                                                             +  systemd-ask-password-console.path                                                                              loaded    inactive dead      Dispatch Password Requests to Console Directory Watch 
-  auth-rpcgss-module.service                                                                                     loaded    inactive dead      Kernel Module supporting RPCSEC_GSS                                                          +  systemd-ask-password-plymouth.path                                                                             loaded    inactive dead      Forward Password Requests to Plymouth Directory Watch 
-  cpupower.service                                                                                               loaded    inactive dead      Configure CPU power related settings                                                         +  alsa-restore.service                                                                                           loaded    inactive dead      Save/Restore Sound Card State 
-● display-manager.service                                                                                        not-found inactive dead      display-manager.service                                                                      +  alsa-state.service                                                                                             loaded    inactive dead      Manage Sound Card State (restore and store) 
-  dm-event.service                                                                                               loaded    inactive dead      Device-mapper event daemon                                                                   +● auto-cpufreq.service                                                                                           not-found inactive dead      auto-cpufreq.service 
-  dnf-makecache.service                                                                                          loaded    inactive dead      dnf makecache                                                                                +● autofs.service                                                                                                 not-found inactive dead      autofs.service 
-  dracut-cmdline.service                                                                                         loaded    inactive dead      dracut cmdline hook                                                                          +  blk-availability.service                                                                                       loaded    inactive dead      Availability of block devices 
-  dracut-initqueue.service                                                                                       loaded    inactive dead      dracut initqueue hook                                                                        +  cpupower.service                                                                                               loaded    inactive dead      Configure CPU power related settings 
-  dracut-mount.service                                                                                           loaded    inactive dead      dracut mount hook                                                                            +  dm-event.service                                                                                               loaded    inactive dead      Device-mapper event daemon 
-  dracut-pre-mount.service                                                                                       loaded    inactive dead      dracut pre-mount hook                                                                        +  dnf-makecache.service                                                                                          loaded    inactive dead      dnf makecache 
-  dracut-pre-pivot.service                                                                                       loaded    inactive dead      dracut pre-pivot and cleanup hook                                                            +  dracut-cmdline.service                                                                                         loaded    inactive dead      dracut cmdline hook 
-  dracut-pre-trigger.service                                                                                     loaded    inactive dead      dracut pre-trigger hook                                                                      +  dracut-initqueue.service                                                                                       loaded    inactive dead      dracut initqueue hook 
-  dracut-pre-udev.service                                                                                        loaded    inactive dead      dracut pre-udev hook                                                                         +  dracut-mount.service                                                                                           loaded    inactive dead      dracut mount hook 
-  ebtables.service                                                                                               loaded    inactive dead      Ethernet Bridge Filtering tables                                                             +  dracut-pre-mount.service                                                                                       loaded    inactive dead      dracut pre-mount hook 
-  emergency.service                                                                                              loaded    inactive dead      Emergency Shell                                                                              +  dracut-pre-pivot.service                                                                                       loaded    inactive dead      dracut pre-pivot and cleanup hook 
-  initrd-cleanup.service                                                                                         loaded    inactive dead      Cleaning Up and Shutting Down Daemons                                                        +  dracut-pre-trigger.service                                                                                     loaded    inactive dead      dracut pre-trigger hook 
-  initrd-parse-etc.service                                                                                       loaded    inactive dead      Reload Configuration from the Real Root                                                      +  dracut-pre-udev.service                                                                                        loaded    inactive dead      dracut pre-udev hook 
-  initrd-switch-root.service                                                                                     loaded    inactive dead      Switch Root                                                                                  +  dracut-shutdown-onfailure.service                                                                              loaded    inactive dead      Service executing upon dracut-shutdown failure to perform cleanup 
-  initrd-udevadm-cleanup-db.service                                                                              loaded    inactive dead      Cleanup udevd DB                                                                             +● ebtables.service                                                                                               not-found inactive dead      ebtables.service 
-● ip6tables.service                                                                                              not-found inactive dead      ip6tables.service                                                                            +  emergency.service                                                                                              loaded    inactive dead      Emergency Shell 
-● ipset.service                                                                                                  not-found inactive dead      ipset.service                                                                                +● fcoe.service                                                                                                   not-found inactive dead      fcoe.service 
-● iptables.service                                                                                               not-found inactive dead      iptables.service                                                                             +  getty@tty1.service                                                                                             loaded    inactive dead      Getty on tty1 
-  iscsi-onboot.service                                                                                           loaded    inactive dead      Special handling of early boot iSCSI sessions                                                +● httpd-init.service                                                                                             not-found inactive dead      httpd-init.service 
-  iscsi.service                                                                                                  loaded    inactive dead      Login and scanning of iSCSI devices                                                          +  initrd-cleanup.service                                                                                         loaded    inactive dead      Cleaning Up and Shutting Down Daemons 
-  iscsid.service                                                                                                 loaded    inactive dead      Open-iSCSI                                                                                   +  initrd-parse-etc.service                                                                                       loaded    inactive dead      Mountpoints Configured in the Real Root 
-  iscsiuio.service                                                                                               loaded    inactive dead      iSCSI UserSpace I/O driver                                                                   +  initrd-switch-root.service                                                                                     loaded    inactive dead      Switch Root 
-  ldconfig.service                                                                                               loaded    inactive dead      Rebuild Dynamic Linker Cache                                                                 +  initrd-udevadm-cleanup-db.service                                                                              loaded    inactive dead      Cleanup udev Database 
-  libvirt-guests.service                                                                                         loaded    inactive dead      Suspend/Resume Running libvirt Guests                                                        +  insights-client-boot.service                                                                                   loaded    inactive dead      Run Insights Client at boot 
-  libvirtd.service                                                                                               loaded    inactive dead      Virtualization daemon                                                                        +● ip6tables.service                                                                                              not-found inactive dead      ip6tables.service 
-  loadmodules.service                                                                                            loaded    inactive dead      Load legacy module configuration                                                             +● ipset.service                                                                                                  not-found inactive dead      ipset.service 
-● lvm2-activation.service                                                                                        not-found inactive dead      lvm2-activation.service                                                                      +● iptables.service                                                                                               not-found inactive dead      iptables.service 
-  lvm2-lvmpolld.service                                                                                          loaded    inactive dead      LVM2 poll daemon                                                                             +  iscsi-init.service                                                                                             loaded    inactive dead      One time configuration for iscsi.service 
-  mdmonitor.service                                                                                              loaded    inactive dead      Software RAID monitoring and management                                                      +  iscsi-onboot.service                                                                                           loaded    inactive dead      Special handling of early boot iSCSI sessions 
-  microcode.service                                                                                              loaded    inactive dead      Load CPU microcode update                                                                    +  iscsi-shutdown.service                                                                                         loaded    inactive dead      Logout off all iSCSI sessions on shutdown 
-● network.service                                                                                                not-found inactive dead      network.service                                                                              +  iscsi-starter.service                                                                                          loaded    inactive dead      iscsi-starter.service 
-  nfs-blkmap.service                                                                                             loaded    inactive dead      pNFS block layout mapping daemon                                                             +  iscsid.service                                                                                                 loaded    inactive dead      Open-iSCSI 
-  nfs-convert.service                                                                                            loaded    inactive dead      Preprocess NFS configuration convertion                                                      +  iscsiuio.service                                                                                               loaded    inactive dead      iSCSI UserSpace I/O driver 
-  nfs-idmapd.service                                                                                             loaded    inactive dead      NFSv4 ID-name mapping service                                                                +  ldconfig.service                                                                                               loaded    inactive dead      Rebuild Dynamic Linker Cache 
-  nfs-mountd.service                                                                                             loaded    inactive dead      NFS Mount Daemon                                                                             +  logrotate.service                                                                                              loaded    inactive dead      Rotate log files 
-  nfs-server.service                                                                                             loaded    inactive dead      NFS server and services                                                                      +  low-memory-monitor.service                                                                                     loaded    inactive dead      Low Memory Monitor 
-  nfs-utils.service                                                                                              loaded    inactive dead      NFS server and client services                                                               +● lvm2-activation-early.service                                                                                  not-found inactive dead      lvm2-activation-early.service 
-  nfsdcld.service                                                                                                loaded    inactive dead      NFSv4 Client Tracking Daemon                                                                 +  lvm2-lvmpolld.service                                                                                          loaded    inactive dead      LVM2 poll daemon 
-  nftables.service                                                                                               loaded    inactive dead      Netfilter Tables                                                                             +  mdadm-last-resort@md1.service                                                                                  loaded    inactive dead      Activate md array md1 even though degraded 
-● ntpd.service                                                                                                   not-found inactive dead      ntpd.service                                                                                 +  microcode.service                                                                                              loaded    inactive dead      Load CPU microcode update 
-● ntpdate.service                                                                                                not-found inactive dead      ntpdate.service                                                                              +  mlocate-updatedb.service                                                                                       loaded    inactive dead      Update a database for mlocate 
-  plymouth-switch-root.service                                                                                   loaded    inactive dead      Plymouth switch root service                                                                 +  modprobe@configfs.service                                                                                      loaded    inactive dead      Load Kernel Module configfs 
-  rc-local.service                                                                                               loaded    inactive dead      /etc/rc.d/rc.local Compatibility                                                             +  modprobe@drm.service                                                                                           loaded    inactive dead      Load Kernel Module drm
-  rescue.service                                                                                                 loaded    inactive dead      Rescue Shell                                                                                 +
-  rpc-gssd.service                                                                                               loaded    inactive dead      RPC security service for NFS client and server                                              +
 --More-- --More--
 </code> </code>
Ligne 800: Ligne 814:
  
 <code> <code>
-[root@centos8 ~]# systemctl status ntpd +[root@redhat9 tmp]# systemctl status ip6tables 
-Unit ntpd.service could not be found.+Unit ip6tables.service could not be found.
 </code> </code>
  
Ligne 807: Ligne 821:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-unit-files | more +[root@redhat9 tmp]# 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    +mnt-sdb12.mount                            generated       - 
-proc-sys-fs-binfmt_misc.mount                                          static    +proc-sys-fs-binfmt_misc.mount              disabled        disabled 
-sys-fs-fuse-connections.mount                                          static    +run-vmblock\x2dfuse.mount                  disabled        disabled 
-sys-kernel-config.mount                                                static    +sys-fs-fuse-connections.mount              static          - 
-sys-kernel-debug.mount                                                 static    +sys-kernel-config.mount                    static          - 
-tmp.mount                                                              disabled  +sys-kernel-debug.mount                     static          - 
-var-lib-machines.mount                                                 static    +sys-kernel-tracing.mount                   static          - 
-var-lib-nfs-rpc_pipefs.mount                                           static    +tmp.mount                                  disabled        disabled 
-cups.path                                                              enabled   +cups.path                                  enabled         enabled 
-systemd-ask-password-console.path                                      static    +insights-client-results.path               disabled        disabled 
-systemd-ask-password-plymouth.path                                     static    +ostree-finalize-staged.path                disabled        disabled 
-systemd-ask-password-wall.path                                         static    +systemd-ask-password-console.path          static          - 
-session-96.scope                                                       transient +systemd-ask-password-plymouth.path         static          - 
-arp-ethers.service                                                     disabled  +systemd-ask-password-wall.path             static          - 
-atd.service                                                            enabled   +session-4.scope                            transient       - 
-auditd.service                                                         enabled   +session-c1.scope                           transient       - 
-auth-rpcgss-module.service                                             static    +accounts-daemon.service                    enabled         enabled 
-autovt@.service                                                        enabled   +alsa-restore.service                       static          - 
-avahi-daemon.service                                                   enabled   +alsa-state.service                         static          - 
-blk-availability.service                                               disabled  +arp-ethers.service                         disabled        disabled 
-chrony-dnssrv@.service                                                 static    +atd.service                                enabled         enabled 
-chrony-wait.service                                                    disabled  +auditd.service                             enabled         enabled 
-chronyd.service                                                        enabled   +autovt@.service                            alias           - 
-cockpit-motd.service                                                   static    +avahi-daemon.service                       enabled         enabled 
-cockpit-wsinstance-http-redirect.service                               static    +bar.service                                enabled         disabled 
-cockpit-wsinstance-http.service                                        static    +blk-availability.service                   disabled        disabled 
-cockpit-wsinstance-https-factory@.service                              static    +bluetooth.service                          enabled         enabled 
-cockpit-wsinstance-https@.service                                      static    +bolt.service                               static          - 
-cockpit.service                                                        static    +brltty.service                             disabled        disabled 
-console-getty.service                                                  disabled  +canberra-system-bootup.service             disabled        disabled 
-container-getty@.service                                               static    +canberra-system-shutdown-reboot.service    disabled        disabled 
-cpupower.service                                                       disabled  +canberra-system-shutdown.service           disabled        disabled 
-crond.service                                                          enabled   +chrony-wait.service                        disabled        disabled 
-cups-browsed.service                                                   disabled  +chronyd-restricted.service                 disabled        disabled 
-cups.service                                                           enabled   +chronyd.service                            disabled        enabled 
-dbus-org.fedoraproject.FirewallD1.service                              enabled   +cni-dhcp.service                           disabled        disabled 
-dbus-org.freedesktop.Avahi.service                                     enabled   +cockpit-motd.service                       static          
-dbus-org.freedesktop.hostname1.service                                 static    +cockpit-wsinstance-http.service            static          - 
-dbus-org.freedesktop.import1.service                                   static    +cockpit-wsinstance-https-factory@.service  static          - 
-dbus-org.freedesktop.locale1.service                                   static    +cockpit-wsinstance-https@.service          static          
-dbus-org.freedesktop.login1.service                                    static    +cockpit.service                            static          - 
-dbus-org.freedesktop.machine1.service                                  static    +colord.service                             static          - 
-dbus-org.freedesktop.nm-dispatcher.service                             enabled   +configure-printer@.service                 static          - 
-dbus-org.freedesktop.portable1.service                                 static    +console-getty.service                      disabled        disabled 
-dbus-org.freedesktop.timedate1.service                                 enabled   +container-getty@.service                   static          - 
-dbus.service                                                           static    +cpupower.service                           disabled        disabled 
-debug-shell.service                                                    disabled  +crond.service                              enabled         enabled 
-dm-event.service                                                       static    +cups-browsed.service                       disabled        disabled 
-dnf-makecache.service                                                  static    +cups.service                               enabled         enabled
-dnsmasq.service                                                        disabled  +
-dracut-cmdline.service                                                 static   +
 --More-- --More--
 </code> </code>
Ligne 871: Ligne 883:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-unit-files -t mount +[root@redhat9 tmp]# 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    +mnt-sdb12.mount               generated -        
-proc-sys-fs-binfmt_misc.mount static    +proc-sys-fs-binfmt_misc.mount disabled  disabled 
-sys-fs-fuse-connections.mount static    +run-vmblock\x2dfuse.mount     disabled  disabled 
-sys-kernel-config.mount       static    +sys-fs-fuse-connections.mount static           
-sys-kernel-debug.mount        static    +sys-kernel-config.mount       static           
-tmp.mount                     disabled  +sys-kernel-debug.mount        static           
-var-lib-machines.mount        static    +sys-kernel-tracing.mount      static           
-var-lib-nfs-rpc_pipefs.mount  static   +tmp.mount                     disabled  disabled
  
 12 unit files listed. 12 unit files listed.
Ligne 898: Ligne 910:
  
 <code> <code>
-[root@centos8 ~]# ls -l /lib/systemd/system-generators/systemd-fstab-generator +[root@redhat9 tmp]# 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 917:
  
 <code> <code>
-[root@centos8 ~]# ls -l /lib/systemd/system-generators +[root@redhat9 tmp]# 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 941:
  
 <code> <code>
-[root@centos8 ~]# systemctl --help +[root@redhat9 tmp]# 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 1007:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemdsystemunitdir+[root@redhat9 tmp]# 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 tmp]# ls -l /usr/lib/systemd/system | more 
-total 1464 +total 1640 
--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  224 Oct 23 14:00 bar.service 
--rw-r--r--. 1 root root  419 Jun 22  2018 bluetooth.target +-rw-r--r--. 1 root root  964 Jul 18 13:00 basic.target 
--rw-r--r--. 1 root root  455 Apr  7 16:54 boot-complete.target +drwxr-xr-x. 2 root root    6 Jul 18 13:00 basic.target.wants 
--rw-r--r--. 1 root root  209 Nov 19  2019 chrony-dnssrv@.service +-r--r--r--. 1 root root  384 Feb  3  2024 blk-availability.service 
--rw-r--r--. 1 root root  138 Nov 19  2019 chrony-dnssrv@.timer +-rw-r--r--. 1 root root  449 Oct 31  2022 blockdev@.target 
--rw-r--r--. 1 root root  491 Nov 19  2019 chronyd.service +-rw-r--r--. 1 root root  707 Jun 14  2022 bluetooth.service 
--rw-r--r--. 1 root root  472 May 10  2019 chrony-wait.service +-rw-r--r--. 1 root root  435 Oct 31  2022 bluetooth.target 
--rw-r--r--. 1 root root  222 Aug 24  2020 cockpit-motd.service +-rw-r--r--. 1 root root  642 Jan 16  2023 bolt.service 
--rw-r--r--. 1 root root  835 Aug 24  2020 cockpit.service +-rw-r--r--. 1 root root  463 Oct 31  2022 boot-complete.target 
--rw-r--r--. 1 root root  373 Aug 24  2020 cockpit.socket +-rw-r--r--. 1 root root  217 Aug  9  2021 brltty.service 
--rw-r--r--. 1 root root  251 Aug 24  2020 cockpit-wsinstance-http-redirect.service +-rw-r--r--. 1 root root  491 Jul 13  2023 canberra-system-bootup.service 
--rw-r--r--. 1 root root  233 Aug 24  2020 cockpit-wsinstance-http-redirect.socket +-rw-r--r--. 1 root root  509 Jul 13  2023 canberra-system-shutdown-reboot.service 
--rw-r--r--. 1 root root  221 Aug 24  2020 cockpit-wsinstance-http.service +-rw-r--r--. 1 root root  466 Jul 13  2023 canberra-system-shutdown.service 
--rw-r--r--. 1 root root  165 Aug 24  2020 cockpit-wsinstance-https-factory@.service +-rw-r--r--. 1 root root 1811 Jan 23  2024 chronyd-restricted.service 
--rw-r--r--. 1 root root  244 Aug 24  2020 cockpit-wsinstance-https-factory.socket +-rw-r--r--. 1 root root 1468 Jan 23  2024 chronyd.service 
--rw-r--r--. 1 root root  215 Aug 24  2020 cockpit-wsinstance-http.socket +-rw-r--r--. 1 root root 1082 Jan 23  2024 chrony-wait.service 
--rw-r--r--. 1 root root  264 Aug 24  2020 cockpit-wsinstance-https@.service +-rw-r--r--. 1 root root  277 Jul 23 09:37 cni-dhcp.service 
--rw-r--r--. 1 root root  478 Aug 24  2020 cockpit-wsinstance-https@.socket +-rw-r--r--. 1 root root  302 Dec  4  2023 cni-dhcp.socket 
--rw-r--r--. 1 root root 1082 Apr  7 16:55 console-getty.service +-rw-r--r--. 1 root root  222 Apr  2  2024 cockpit-motd.service 
--rw-r--r--. 1 root root 1263 Apr  7 16:55 container-getty@.service +-rw-r--r--. 1 root root  720 Apr  2  2024 cockpit.service 
--rw-r--r--. 1 root root  294 Apr  8 15:21 cpupower.service +-rw-r--r--. 1 root root  349 Apr  2  2024 cockpit.socket 
--rw-r--r--. 1 root root  356 Nov   2019 crond.service +-rw-r--r--. 1 root root  221 Apr  2  2024 cockpit-wsinstance-http.service 
--rw-r--r--. 1 root root  465 Jun 22  2018 cryptsetup-pre.target +-rw-r--r--. 1 root root  165 Apr  2  2024 cockpit-wsinstance-https-factory@.service 
--rw-r--r--. 1 root root  412 Jun 22  2018 cryptsetup.target +-rw-r--r--. 1 root root  244 Apr  2  2024 cockpit-wsinstance-https-factory.socket 
-lrwxrwxrwx. 1 root root   13 Apr  7 16:55 ctrl-alt-del.target -> reboot.target +-rw-r--r--. 1 root root  215 Apr   2024 cockpit-wsinstance-http.socket 
--rw-r--r--. 1 root root  234 Oct   2017 cups-browsed.service +-rw-r--r--. 1 root root  264 Apr  2  2024 cockpit-wsinstance-https@.service 
--r--r--r--. 1 root root  142 Jun 15  2020 cups.path +-rw-r--r--. 1 root root  478 Apr  2  2024 cockpit-wsinstance-https@.socket 
--r--r--r--. 1 root root  248 Jun 15  2020 cups.service +-rw-r--r--. 1 root root  295 Aug   2021 colord.service 
--r--r--r--. 1 root root  136 Jun 15  2020 cups.socket +-rw-r--r--. 1 root root  154 Aug 11  2021 configure-printer@.service 
-lrwxrwxrwx. 1 root root   25 Apr  7 16:55 dbus-org.freedesktop.hostname1.service -> systemd-hostnamed.service +-rw-r--r--. 1 root root 1102 Jul 18 13:00 console-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 1254 Jul 18 13:00 container-getty@.service 
-lrwxrwxrwx. 1 root root   23 Apr  7 16:55 dbus-org.freedesktop.locale1.service -> systemd-localed.service +-rw-r--r--. 1 root root  294 Sep 13 18:49 cpupower.service 
-lrwxrwxrwx. 1 root root   22 Apr  7 16:55 dbus-org.freedesktop.login1.service -> systemd-logind.service +-rw-r--r--. 1 root root  371 Nov 30  2023 crond.service 
-lrwxrwxrwx. 1 root root   24 Apr  7 16:55 dbus-org.freedesktop.machine1.service -> systemd-machined.service +-rw-r--r--. 1 root root  473 Oct 31  2022 cryptsetup-pre.target 
-lrwxrwxrwx. 1 root root   25 Apr  7 16:55 dbus-org.freedesktop.portable1.service -> systemd-portabled.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.timedate1.service -> systemd-timedated.service +lrwxrwxrwx. 1 root root   13 Jul 18 13:00 ctrl-alt-del.target -> reboot.target 
--rw-r--r--. 1 root root  380 Apr  12:08 dbus.service +-rw-r--r--. 1 root root  234 Jan   2021 cups-browsed.service 
--rw-r--r--. 1 root root  102 Apr  7 12:08 dbus.socket +-rw-r--r--. 1 root root  142 Jun 19 11:00 cups.path 
-drwxr-xr-x. 2 root root    6 Apr  7 16:55 dbus.target.wants +-rw-r--r--. 1 root root  298 Jun 19 11:00 cups.service 
--rw-r--r--. 1 root root 1084 Apr  7 16:55 debug-shell.service +drwxr-xr-x. 2 root root   25 Sep 25 12:03 cups.service.d 
-lrwxrwxrwx. 1 root root   16 Apr  7 16:55 default.target -> graphical.target +-rw-r--r--. 1 root root  148 Jun 19 11:00 cups.socket 
-drwxr-xr-x. 2 root root    6 Apr  7 16:55 default.target.wants +-rw-r--r--. 1 root root  529 Aug 23  2022 dbus-broker.service 
--rw-r--r--. 1 root root  750 Jun 22  2018 dev-hugepages.mount +-rw-r--r--. 1 root root  560 Jun 12  2023 dbus-daemon.service 
--rw-r--r--. 1 root root  665 Jun 22  2018 dev-mqueue.mount +lrwxrwxrwx. 1 root root   25 Jul 18 13:00 dbus-org.freedesktop.hostname1.service -> systemd-hostnamed.service 
--r--r--r--. 1 root root  345 Aug 17  2020 dm-event.service +lrwxrwxrwx. 1 root root   23 Jul 18 13:00 dbus-org.freedesktop.locale1.service -> systemd-localed.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--
 </code> </code>
Ligne 1064: Ligne 1074:
  
 <code> <code>
-[root@centos8 ~]# ls -l /run/systemd/system/+[root@redhat9 tmp]# ls -l /run/systemd/system/
 total 0 total 0
 </code> </code>
Ligne 1071: Ligne 1081:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemduserunitdir+[root@redhat9 tmp]# pkg-config systemd --variable=systemduserunitdir
 /usr/lib/systemd/user /usr/lib/systemd/user
 </code> </code>
Ligne 1082: Ligne 1092:
  
 <code> <code>
-[root@centos8 ~]# cat /usr/lib/systemd/system/sshd.service+[root@redhat9 tmp]# cat /usr/lib/systemd/system/sshd.service
 [Unit] [Unit]
 Description=OpenSSH server daemon Description=OpenSSH server daemon
Ligne 1091: Ligne 1101:
 [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 1127:
   * **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 1146:
  
 <code> <code>
-[root@centos8 ~]# systemctl show sshd+[root@redhat9 tmp]# systemctl show sshd
 Type=notify Type=notify
 +ExitType=main
 Restart=on-failure Restart=on-failure
 NotifyAccess=main NotifyAccess=main
Ligne 1144: Ligne 1154:
 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=1175
 ControlPID=0 ControlPID=0
 FileDescriptorStoreMax=0 FileDescriptorStoreMax=0
Ligne 1158: Ligne 1170:
 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=Thu 2024-10-24 09:29:16 CEST 
 +ExecMainStartTimestampMonotonic=38779836
 ExecMainExitTimestampMonotonic=0 ExecMainExitTimestampMonotonic=0
-ExecMainPID=902+ExecMainPID=1175
 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=; code=(null) ; status=0/0 }+ExecStart={ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS ; ignore_errors=no ; start_time=[Thu 2024-10-24 09:29:16 CEST] ; stop_time=[n/a] ; pid=1175 ; code=(null) ; status=0/0 } 
 +ExecStartEx={ path=/usr/sbin/sshd ; argv[]=/usr/sbin/sshd -D $OPTIONS ; flags= ; start_time=[Thu 2024-10-24 09:29:16 CEST] ; stop_time=[n/a] ; pid=1175 ; 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=4041 
-CPUUsageNSec=[not set] +MemoryCurrent=5337088 
-EffectiveCPUs+MemoryAvailable=infinity 
-EffectiveMemoryNodes=+CPUUsageNSec=63348000
 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 1208:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-dependencies sshd.service+[root@redhat9 tmp]# 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
 +●   │ └─systemd-cryptsetup@sdb12.service
 +●   ├─integritysetup.target
 ●   ├─local-fs.target ●   ├─local-fs.target
-●   │ ├─-.mount +lines 1-55
-●   │ ├─boot.mount +
-●   │ └─systemd-remount-fs.service +
-●   └─swap.target +
-●     └─dev-disk-by\x2duuid-c8bb3f47\x2dd67f\x2d4b21\x2db781\x2d766899dc83d4.swap+
 </code> </code>
  
Ligne 1260: Ligne 1272:
  
 <code> <code>
-[root@centos8 ~]# pkg-config systemd --variable=systemdsystemunitpath+[root@redhat9 tmp]# 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 tmp]# 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-x. 2 root 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 +lrwxrwxrwx. 1 root root   40 Oct 19  2023  default.target -> /usr/lib/systemd/system/graphical.target 
-drwxr-xr-x. 2 root 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 +lrwxrwxrwx. 1 root 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 24 08:02  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-x. 2 root root   27 Oct 23 13:09  sysstat-collect.timer.d 
 +drwxr-xr-x. 2 root root   64 Oct 23 12:58  sysstat.service.wants 
 +drwxr-xr-x. 2 root root   27 Oct 21 16:32  systemd-tmpfiles-clean.timer.d 
 +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 1313:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze +[root@redhat9 tmp]# systemd-analyze 
-Startup finished in 1.665s (kernel) + 6.977s (initrd) + 8.458s (userspace) = 17.101s +Startup finished in 1.361s (kernel) + 4.348s (initrd) + 1min 21.082s (userspace) = 1min 26.792s  
-multi-user.target reached after 5.528s in userspace+graphical.target reached after 53.162s in userspace.
 </code> </code>
  
Ligne 1305: Ligne 1321:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze blame +[root@redhat9 tmp]# systemd-analyze blame 
-          4.080s dracut-initqueue.service +44.601s kdump.service 
-          3.257s kdump.service +18.590s systemd-cryptsetup@sdb12.service 
-          1.727s tuned.service +16.592s plymouth-quit-wait.service 
-          1.415s initrd-switch-root.service + 9.801s dev-sdb8.device 
-          1.393s NetworkManager-wait-online.service + 9.801s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart8.device 
-          1.116s systemd-machined.service + 9.801s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb8.device 
-          1.111s dracut-cmdline.service + 9.801s dev-disk-by\x2dpartuuid-23a56c2e\x2d08.device 
-           850ms sssd.service + 9.801s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart8.device 
-           791ms vdo.service + 9.801s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1\x2dpart8.device 
-           713ms firewalld.service + 9.800s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb10.device 
-           622ms lvm2-monitor.service + 9.800s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart10.device 
-           605ms polkit.service + 9.800s dev-sdb10.device 
-           508ms chronyd.service + 9.800s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1\x2dpart10.device 
-           434ms avahi-daemon.service + 9.800s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart10.device 
-           426ms systemd-logind.service + 9.800s dev-disk-by\x2dpartuuid-23a56c2e\x2d0a.device 
-           417ms netcf-transaction.service + 9.800s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb5.device 
-           410ms dracut-pre-udev.service + 9.800s dev-sdb5.device 
-           295ms libvirtd.service + 9.800s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1\x2dpart5.device 
-           275ms dnf-makecache.service + 9.800s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart5.device 
-           243ms systemd-udevd.service + 9.800s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart5.device 
-           221ms systemd-journald.service + 9.799s dev-disk-by\x2dpartuuid-23a56c2e\x2d05.device 
-           196ms systemd-tmpfiles-setup.service + 9.782s sys-module-fuse.device 
-           151ms dracut-pre-pivot.service + 9.750s dev-ttyS3.device 
-           139ms sysroot.mount + 9.750s sys-devices-platform-serial8250-tty-ttyS3.device 
-           139ms systemd-update-utmp-runlevel.service + 9.749s dev-ttyS0.device 
-           122ms systemd-vconsole-setup.service + 9.749s sys-devices-platform-serial8250-tty-ttyS0.device 
-           110ms lvm2-pvscan@8:25.service + 9.749s dev-ttyS1.device 
-            98ms systemd-udev-trigger.service + 9.749s sys-devices-platform-serial8250-tty-ttyS1.device 
-            82ms gssproxy.service + 9.749s dev-ttyS2.device 
-            81ms cups.service + 9.749s sys-devices-platform-serial8250-tty-ttyS2.device 
-            79ms initrd-parse-etc.service + 9.717s sys-devices-pci0000:00-0000:00:12.0-virtio1-net-ens18.device 
-            77ms NetworkManager.service + 9.717s sys-subsystem-net-devices-ens18.device 
-            72ms lvm2-pvscan@8:23.service + 9.717s sys-module-configfs.device 
-            69ms systemd-user-sessions.service + 9.680s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart6.device 
-            68ms lvm2-pvscan@8:22.service + 9.680s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb6.device 
-            67ms unbound-anchor.service + 9.680s dev-disk-by\x2dpartuuid-23a56c2e\x2d06.device 
-            66ms rsyslog.service + 9.680s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart6.device 
-            62ms boot.mount + 9.680s dev-sdb6.device 
-            56ms sshd.service + 9.680s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1\x2dpart6.device 
-            54ms smartd.service + 9.654s dev-disk-by\x2dpath-pci\x2d0000:01:01.0\x2dscsi\x2d0:0:0:0\x2dpart2.device 
-            54ms systemd-fsck@dev-disk-by\x2duuid-2ae4c035\x2d9244\x2d458c\x2d82c5\x2da49ae169cdb6.service + 9.654s 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 
-            53ms user@1000.service + 9.654s dev-sda2.device 
-            52ms auditd.service + 9.654s dev-disk-by\x2dpartuuid-d00dfc8a\x2d02.device 
-            51ms plymouth-quit.service + 9.654s dev-disk-by\x2did-scsi\x2d0QEMU_QEMU_HARDDISK_drive\x2dscsi0\x2dpart2.device 
-            49ms rngd-wake-threshold.service + 9.647s dev-disk-by\x2dpartuuid-23a56c2e\x2d09.device 
-            46ms import-state.service + 9.647s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb9.device 
-            46ms systemd-tmpfiles-setup-dev.service + 9.647s dev-sdb9.device 
-            43ms ksmtuned.service + 9.647s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart9.device 
-            42ms plymouth-quit-wait.service + 9.647s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1\x2dpart9.device 
-            42ms var-lib-nfs-rpc_pipefs.mount + 9.647s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart9.device 
-            42ms rpc-statd-notify.service + 9.635s dev-sdb7.device 
-            38ms plymouth-switch-root.service + 9.635s sys-devices-pci0000:00-0000:00:07.0-ata3-host3-target3:0:0-3:0:0:0-block-sdb-sdb7.device 
-            37ms systemd-remount-fs.service + 9.635s dev-disk-by\x2dpath-pci\x2d0000:00:07.0\x2data\x2d1.0\x2dpart7.device 
-            37ms plymouth-start.service + 9.635s dev-disk-by\x2dpartuuid-23a56c2e\x2d07.device 
-            33ms dev-disk-by\x2duuid-c8bb3f47\x2dd67f\x2d4b21\x2db781\x2d766899dc83d4.swap + 9.635s dev-disk-by\x2did-ata\x2dQEMU_HARDDISK_QM00005\x2dpart7.device 
-            33ms systemd-tmpfiles-clean.service +lines 1-55
-            31ms dev-hugepages.mount +
-lines 1-57+
 </code> </code>
  
Ligne 1369: Ligne 1383:
  
 <code> <code>
-[root@centos8 ~]# systemd-analyze critical-chain sshd.service +[root@redhat9 tmp]# 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 +348ms 
-└─network.target @3.799s +└─network.target @33.014s 
-  └─NetworkManager.service @3.719s +77ms +  └─wpa_supplicant.service @49.199s +119ms 
-    └─network-pre.target @3.718s +    └─basic.target @27.729s 
-      └─firewalld.service @3.004s +713ms +      └─dbus-broker.service @26.718s +1.007s 
-        └─polkit.service @2.397s +605ms +        └─dbus.socket @26.682s 
-          └─basic.target @2.392s +          └─sysinit.target @26.678s 
-            └─sockets.target @2.392s +            └─systemd-update-utmp.service @26.658s +19ms 
-              └─sssd-kcm.socket @2.391s +              └─auditd.service @26.278s +369ms 
-                └─sysinit.target @2.379s +                └─systemd-tmpfiles-setup.service @25.954s +313ms 
-                  └─systemd-update-utmp.service @2.370s +8ms +                  └─local-fs.target @25.942s 
-                    └─auditd.service @2.317s +52ms +                    └─run-user-1000.mount @1min 19.309s 
-                      └─systemd-tmpfiles-setup.service @2.118s +196ms +                      └─local-fs-pre.target @6.742s 
-                        └─import-state.service @2.070s +46ms +                        └─systemd-tmpfiles-setup-dev.service @3.994s +1.040s 
-                          └─local-fs.target @2.069s +                          └─kmod-static-nodes.service @3.795s +53ms 
-                            └─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 1410:
  
 <code> <code>
-[root@centos7 ~]# systemd-analyze --help +[root@redhat9 tmp]# 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 1474:
  
 <code> <code>
-[root@centos8 ~]# cat /usr/lib/systemd/system/graphical.target +[root@redhat9 tmp]# 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 1510:
  
 <code> <code>
-[root@centos8 ~]# systemctl list-dependencies multi-user.target+[root@redhat9 tmp]# 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+● ├─bar.service
 ● ├─crond.service ● ├─crond.service
 ● ├─cups.path ● ├─cups.path
 ● ├─cups.service ● ├─cups.service
-● ├─dbus.service 
-● ├─dnf-makecache.timer 
 ● ├─firewalld.service ● ├─firewalld.service
 +● ├─foo.service
 +● ├─httpd.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+● ├─psacct.service 
 +● ├─rhsmcertd.service
 ● ├─rsyslog.service ● ├─rsyslog.service
-● ├─smartd.service+○ ├─smartd.service
 ● ├─sshd.service ● ├─sshd.service
-● ├─sssd.service+○ ├─sssd.service 
 +● ├─sysstat.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 +○ ├─vmtoolsd.service
-● ├─vdo.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 1560:
 ● │ │ ├─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 1529: Ligne 1566:
 ● │ │ ├─systemd-journald-dev-log.socket ● │ │ ├─systemd-journald-dev-log.socket
 ● │ │ ├─systemd-journald.socket ● │ │ ├─systemd-journald.socket
-● │ │ ├─systemd-udevd-control.socket +lines 1-55
-lines 1-57+
 </code> </code>
  
Ligne 1542: Ligne 1578:
  
 <code> <code>
-[root@centos8 ~]# systemctl --failed +[root@redhat9 tmp]# 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 1586:
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/systemd/system/multi-user.target.wants+[root@redhat9 tmp]# 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 35 Oct 23 14:01 bar.service -> /usr/lib/systemd/system/bar.service 
-lrwxrwxrwx. 1 root root 37 May  8  2020 crond.service -> /usr/lib/systemd/system/crond.service +lrwxrwxrwx. 1 root root 37 Oct 19  2023 crond.service -> /usr/lib/systemd/system/crond.service 
-lrwxrwxrwx. 1 root root 33 Jun  3 14:02 cups.path -> /usr/lib/systemd/system/cups.path +lrwxrwxrwx. 1 root root 33 Oct 19  2023 cups.path -> /usr/lib/systemd/system/cups.path 
-lrwxrwxrwx. 1 root root 36 Jun  3 14:02 cups.service -> /usr/lib/systemd/system/cups.service +lrwxrwxrwx. 1 root root 36 Oct 19  2023 cups.service -> /usr/lib/systemd/system/cups.service 
-lrwxrwxrwx. 1 root root 43 May  8  2020 dnf-makecache.timer -> /usr/lib/systemd/system/dnf-makecache.timer +lrwxrwxrwx. 1 root root 41 Oct 19  2023 firewalld.service -> /usr/lib/systemd/system/firewalld.service 
-lrwxrwxrwx. 1 root root 41 May  8  2020 firewalld.service -> /usr/lib/systemd/system/firewalld.service +lrwxrwxrwx. 1 root root 35 Oct 23 13:59 foo.service -> /usr/lib/systemd/system/foo.service 
-lrwxrwxrwx. 1 root root 42 May  8  2020 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service +lrwxrwxrwx. 1 root root 37 Oct 22 10:15 httpd.service -> /usr/lib/systemd/system/httpd.service 
-lrwxrwxrwx. 1 root root 37 May  8  2020 kdump.service -> /usr/lib/systemd/system/kdump.service +lrwxrwxrwx. 1 root root 52 Oct 19  2023 insights-client-boot.service -> /usr/lib/systemd/system/insights-client-boot.service 
-lrwxrwxrwx. 1 root root 35 Apr 19 12:07 ksm.service -> /usr/lib/systemd/system/ksm.service +lrwxrwxrwx. 1 root root 42 Oct 19  2023 irqbalance.service -> /usr/lib/systemd/system/irqbalance.service 
-lrwxrwxrwx. 1 root root 40 Apr 19 12:07 ksmtuned.service -> /usr/lib/systemd/system/ksmtuned.service +lrwxrwxrwx. 1 root root 37 Oct 19  2023 kdump.service -> /usr/lib/systemd/system/kdump.service 
-lrwxrwxrwx. 1 root root 46 May  8  2020 libstoragemgmt.service -> /usr/lib/systemd/system/libstoragemgmt.service +lrwxrwxrwx. 1 root root 46 Oct 19  2023 libstoragemgmt.service -> /usr/lib/systemd/system/libstoragemgmt.service 
-lrwxrwxrwx. 1 root root 40 Apr 19 12:07 libvirtd.service -> /usr/lib/systemd/system/libvirtd.service +lrwxrwxrwx. 1 root root 38 Oct 19  2023 mcelog.service -> /usr/lib/systemd/system/mcelog.service 
-lrwxrwxrwx. 1 root root 38 May  8  2020 mcelog.service -> /usr/lib/systemd/system/mcelog.service +lrwxrwxrwx. 1 root root 41 Oct 19  2023 mdmonitor.service -> /usr/lib/systemd/system/mdmonitor.service 
-lrwxrwxrwx. 1 root root 41 May  8  2020 mdmonitor.service -> /usr/lib/systemd/system/mdmonitor.service +lrwxrwxrwx. 1 root root 44 Oct 19  2023 ModemManager.service -> /usr/lib/systemd/system/ModemManager.service 
-lrwxrwxrwx. 1 root root 49 Apr 19 12:07 netcf-transaction.service -> /usr/lib/systemd/system/netcf-transaction.service +lrwxrwxrwx. 1 root root 46 Oct 19  2023 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service 
-lrwxrwxrwx. 1 root root 46 May  8  2020 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service +lrwxrwxrwx. 1 root root 38 Oct 22 15:41 psacct.service -> /usr/lib/systemd/system/psacct.service 
-lrwxrwxrwx. 1 root root 41 Apr 19 12:07 nfs-client.target -> /usr/lib/systemd/system/nfs-client.target +lrwxrwxrwx. 1 root root 40 Oct 19  2023 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target 
-lrwxrwxrwx. 1 root root 40 May  8  2020 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target +lrwxrwxrwx. 1 root root 41 Oct 19  2023 rhsmcertd.service -> /usr/lib/systemd/system/rhsmcertd.service 
-lrwxrwxrwx. 1 root root 39 Apr 19 12:07 rpcbind.service -> /usr/lib/systemd/system/rpcbind.service +lrwxrwxrwx. 1 root root 39 Oct 19  2023 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service 
-lrwxrwxrwx. 1 root root 39 May  8  2020 rsyslog.service -> /usr/lib/systemd/system/rsyslog.service +lrwxrwxrwx. 1 root root 38 Oct 19  2023 smartd.service -> /usr/lib/systemd/system/smartd.service 
-lrwxrwxrwx. 1 root root 38 May  8  2020 smartd.service -> /usr/lib/systemd/system/smartd.service +lrwxrwxrwx. 1 root root 36 Oct 19  2023 sshd.service -> /usr/lib/systemd/system/sshd.service 
-lrwxrwxrwx. 1 root root 36 May  8  2020 sshd.service -> /usr/lib/systemd/system/sshd.service +lrwxrwxrwx. 1 root root 36 Oct 19  2023 sssd.service -> /usr/lib/systemd/system/sssd.service 
-lrwxrwxrwx. 1 root root 36 May  8  2020 sssd.service -> /usr/lib/systemd/system/sssd.service +lrwxrwxrwx. 1 root root 39 Oct 23 12:58 sysstat.service -> /usr/lib/systemd/system/sysstat.service 
-lrwxrwxrwx. 1 root root 37 May  8  2020 tuned.service -> /usr/lib/systemd/system/tuned.service +lrwxrwxrwx. 1 root root 40 Oct 19  2023 vmtoolsd.service -> /usr/lib/systemd/system/vmtoolsd.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 tmp]# 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 1635:
  
 <code> <code>
-[root@centos8 ~]# systemctl get-default +[root@redhat9 tmp]# systemctl get-default 
-multi-user.target+graphical.target
 </code> </code>
  
Ligne 1607: Ligne 1642:
  
 <code> <code>
-[root@centos8 ~]# ls -l /etc/systemd/system/default.target +[root@redhat9 tmp]# 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 1651:
  
 <code> <code>
-[root@centos8 ~]# systemctl set-default graphical.target +[root@redhat9 tmp]# systemctl get-default 
-Removed /etc/systemd/system/default.target. +graphical.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. +
-[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 +
-</code>+
  
-==Modifier la Cible en Cours==+[root@redhat9 tmp]# ls -l /etc/systemd/system/default.target 
 +lrwxrwxrwx. 1 root root 40 Oct 19  2023 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
  
-Il est possible de modifier la cible actuellement en cours en utilisant la commande **systemctl isolate** :+[root@redhat9 tmp]# 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.
  
-<code> +[root@redhat9 tmp]# systemctl get-default 
-[root@centos8 ~]# systemctl isolate rescue +multi-user.target
-[root@centos8 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 +
-rescue.target       loaded active active Rescue Mode              +
-[root@centos8 ~]# runlevel +
-3 1 +
-[root@centos8 ~]# who -r +
-         run-level 1  2021-06-15 04:22                   last=3 +
-</code>+
  
-<code> +[root@redhat9 tmp]# ls -l /etc/systemd/system/default.target 
-[root@centos8 ~]# systemctl isolate multi-user +lrwxrwxrwx. 1 root root 41 Oct 24 11:47 /etc/systemd/system/default.target -> /usr/lib/systemd/system/multi-user.target
-[root@centos8 ~]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -+
-multi-user.target      loaded active active Multi-User System           +
-[root@centos8 ~]# runlevel +
-1 3 +
-[root@centos8 ~]# who -r +
-         run-level 3  2021-06-15 04:24                   last=1 +
-</code>+
  
-====LAB #Gestion des Services====+[root@redhat9 tmp]systemctl set-default graphical.target 
 +Removed "/etc/systemd/system/default.target"
 +Created symlink /etc/systemd/system/default.target → /usr/lib/systemd/system/graphical.target.
  
-===5.1 Gestion des Instances Uniques===+[root@redhat9 tmp]# systemctl get-default 
 +graphical.target
  
-Commencez par installer le paquet **httpd** : +[root@redhat9 tmp]# ls -l /etc/systemd/system/default.target 
- +lrwxrwxrwx. 1 root root 40 Oct 24 11:47 /etc/systemd/system/default.target -> /usr/lib/systemd/system/graphical.target
-<code> +
-[root@centos8 ~]# dnf install httpd+
 </code> </code>
  
-Pour obtenir le détail sur un service donné, il convient d'utiliser la commande **systemctl status** :+==Modifier la Cible en Cours==
  
-<code> +Il est possible de modifier la cible actuellement en cours en utilisant la commande **systemctl isolate** :
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +
-   Active: inactive (dead) +
-     Docs: man:httpd.service(8) +
-</code> +
- +
-Dans le cas du service httpd ci-dessus, on peut constater que le statut est **disabled**. Le statut peut être une de 2 valeurs : +
- +
-  * **disabled** - le service ne démarrera pas lors du prochain démarrage du système. +
-  * **enabled** - le service démarrera lors du prochain démarrage du système. +
- +
-Il est possible de vérifier le statut en utilisant le commande **systemctl is-enabled** :+
  
 <code> <code>
-[root@centos8 ~]# systemctl is-enabled httpd.service +[root@redhat9 tmp]# systemctl isolate rescue
-disabled +
-</code>+
  
-Pour rendre le statut **enabled**, il convient d'utiliser la commande **systemctl enable** :+[root@redhat9 tmp]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 
 +  rescue.target          loaded active active      Rescue Mode
  
-<code> +[root@redhat9 tmp]# runlevel 
-[root@centos8 ~]# systemctl enable httpd.service +5 1
-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 tmp]# who -r 
-enabled +         run-level 1  2024-10-24 11:48                   last=5
- +
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +
-   Active: inactive (dead) +
-     Docs: man:httpd.service(8)+
 </code> </code>
- 
-Dans le cas du service httpd ci-dessus, on peut maintenant constater que l'état est **inactive (dead)**.  L'état peut être une de 7 valeurs : 
- 
-  * **inactive (dead)** - le service est arrêté. 
-  * **active(running** - le service est démarré avec un ou plusieurs processus. 
-  * **active(exited)** - le service a terminé une configuration unique. 
-  * **active(waiting)** - le service est démarré mais en attente d'un évènement. 
-  * **activating** - le service est en cours d'activation. 
-  * **deactivating** - le service est en cours de désactivation. 
-  * **failed** - le service a rencontré une erreur fatale. 
- 
-Il est possible de vérifier l'état en utilisant le commande **systemctl is-active** : 
  
 <code> <code>
-[root@centos8 ~]# systemctl is-active httpd.service +[root@redhat9 tmp]# systemctl isolate graphical
-inactive +
-</code> +
- +
-Pour rendre l'état **active(running)**, utilisez la commande suivante : +
- +
-<code> +
-[root@centos8 ~]# systemctl start httpd.service +
-</code> +
- +
-Vérifiez ensuite l'état du service : +
- +
-<code> +
-[root@centos8 ~]# systemctl is-active httpd.service +
-active +
- +
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +
-   Active: active (running) since Sun 2021-06-06 15:33:06 EDT; 14s ago +
-     Docs: man:httpd.service(8) +
- Main PID: 34382 (httpd) +
-   Status: "Running, listening on: port 80" +
-    Tasks: 213 (limit: 23719) +
-   Memory: 36.3M +
-   CGroup: /system.slice/httpd.service +
-           ├─34382 /usr/sbin/httpd -DFOREGROUND +
-           ├─34383 /usr/sbin/httpd -DFOREGROUND +
-           ├─34384 /usr/sbin/httpd -DFOREGROUND +
-           ├─34385 /usr/sbin/httpd -DFOREGROUND +
-           └─34386 /usr/sbin/httpd -DFOREGROUND +
- +
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80 +
-</code> +
- +
-Pour arrêter une Unité de service, utilisez la commande suivante : +
- +
-<code> +
-[root@centos8 ~]# systemctl stop httpd.service +
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +
-   Active: inactive (dead) since Sun 2021-06-06 23:58:04 EDT; 8s ago +
-     Docs: man:httpd.service(8) +
-  Process: 34382 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) +
- Main PID: 34382 (code=exited, status=0/SUCCESS) +
-   Status: "Running, listening on: port 80" +
- +
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80 +
-Jun 06 23:58:02 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded. +
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server. +
-</code> +
- +
-Pour désactiver un service au prochain démarrage du système, utilisez l'option **disable** : +
- +
-<code> +
-[root@centos8 ~]# systemctl disable httpd.service +
-Removed /etc/systemd/system/multi-user.target.wants/httpd.service. +
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +
-   Active: inactive (dead) +
-     Docs: man:httpd.service(8) +
- +
-Jun 06 15:33:05 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 06 15:33:06 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 06 15:33:06 centos8.ittraining.loc httpd[34382]: Server configured, listening on: port 80 +
-Jun 06 23:58:02 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded. +
-Jun 06 23:58:04 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server. +
-</code> +
- +
-===5.2 - Gestion d'Instances Multiples=== +
- +
-Systemd permet l'utilisation des gabarits (templates) des fichiers de configuration des Unités. De cette façon il est possible de faire coexister deux ou plusieurs instances du même service. Un gabarit est reconnaissable par le caractère **@** qui est placé juste avant le point dans le nom du fichier : +
- +
-<code> +
-[root@centos8 ~]# cat /usr/lib/systemd/system/httpd@.service +
-# This is a template for httpd instances. +
-# See httpd@.service(8) for more information. +
- +
-[Unit] +
-Description=The Apache HTTP Server +
-After=network.target remote-fs.target nss-lookup.target +
-Documentation=man:httpd@.service(8) +
- +
-[Service] +
-Type=notify +
-Environment=LANG=C +
-Environment=HTTPD_INSTANCE=%i +
-ExecStartPre=/bin/mkdir -m 710 -p /run/httpd/instance-%i +
-ExecStartPre=/bin/chown root.apache /run/httpd/instance-%i +
-ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND -f conf/%i.conf +
-ExecReload=/usr/sbin/httpd $OPTIONS -k graceful -f conf/%i.conf +
-# Send SIGWINCH for graceful stop +
-KillSignal=SIGWINCH +
-KillMode=mixed +
-PrivateTmp=true +
- +
-[Install] +
-WantedBy=multi-user.target +
-</code> +
- +
-Une instance créée à partir de ce gabarit devrait avoir un nom sous la forme suivante : +
- +
-<code> +
-httpd@<nom_instance>.service +
-</code> +
- +
-Dans ce fichier on peut constater l'utilisation d'un **identifier** sous la forme de **%i**. Les identifiers sont de deux types - un dit **échappé** où les caractères non-ASCII alphanumérique sont remplacés par **escapes** de type langage C et l'autre non-échappé : +
- +
-  * %n : est remplacé par le nom complet échappé de l'Unité. +
-  * %N : est remplacé par le nom complet non-échappé de l'Unité. +
-  * %p : est remplacé par le préfixe échappé de l'Unité, c'est-à-dire la partie **avant** le caractère @. +
-  * %P : est remplacé par le préfixe non-échappé de l'Unité, c'est-à-dire la partie **avant** le caractère @. +
-  * %i : est remplacé par le nom de l'instance échappé de l'Unité, c'est-à-dire la partie **après** le caractère @ et **avant** le point. +
-  * %I : est remplacé par le nom de l'instance non-échappé de l'Unité, c'est-à-dire la partie **après** le caractère @ et **avant** le point. +
-  * %f : est remplacé par le préfixe non-échappé ou le nom de l'instance non-échappé préfixé par le caractère **/**. +
-  * %c : est remplacé par le CGroup de l'Unité sans le chemin /sys/fs/cgroup/systemd/+
-  * %u : est remplacé par le nom de l'utilisateur responsable de l'exécution de l'Unité. +
-  * %U : est remplacé par l'UID de l'utilisateur responsable de l'exécution de l'Unité. +
-  * %H : est remplacé par le nom d'hôte sur lequel est exécuté l'Unité. +
-  * %% : est remplacé" par le caractère **%**. +
- +
-Créez maintenant deux copies du fichier **/usr/lib/systemd/system/httpd@.service** : +
- +
-<code> +
-[root@centos8 ~]# 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 +
-</code> +
- +
-Créez deux copies du fichier **/etc/httpd/conf/httpd.conf** : +
- +
-<code> +
-[root@centos8 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance01.conf +
-[root@centos8 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/instance02.conf +
-</code> +
- +
-Editez la directive **Listen** du fichier **/etc/httpd/conf/instance01.conf** et ajoutez la directive **PidFile** : +
- +
-<code> +
-[root@centos8 ~]# vi /etc/httpd/conf/instance01.conf  +
-[root@centos8 ~]# more /etc/httpd/conf/instance01.conf  +
-+
-# This is the main Apache HTTP server configuration file.  It contains the +
-# configuration directives that give the server its instructions. +
-# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. +
-# In particular, see  +
-# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> +
-# for a discussion of each configuration directive. +
-+
-# See the httpd.conf(5) man page for more information on this configuration, +
-# and httpd.service(8) on using and configuring the httpd service. +
-+
-# Do NOT simply read the instructions in here without understanding +
-# what they do.  They're here only as hints or reminders.  If you are unsure +
-# consult the online docs. You have been warned.   +
-+
-# Configuration and logfile names: If the filenames you specify for many +
-# of the server's control files begin with "/" (or "drive:/" for Win32), the +
-# server will use that explicit path.  If the filenames do *not* begin +
-# with "/", the value of ServerRoot is prepended -- so 'log/access_log' +
-# with ServerRoot set to '/www' will be interpreted by the +
-# server as '/www/log/access_log', where as '/log/access_log' will be +
-# interpreted as '/log/access_log'+
- +
-+
-# ServerRoot: The top of the directory tree under which the server'+
-# configuration, error, and log files are kept. +
-+
-# Do not add a slash at the end of the directory path.  If you point +
-# ServerRoot at a non-local disk, be sure to specify a local disk on the +
-# Mutex directive, if file-based mutexes are used.  If you wish to share the +
-# same ServerRoot for multiple httpd daemons, you will need to change at +
-# least PidFile. +
-+
-ServerRoot "/etc/httpd" +
- +
-+
-# Listen: Allows you to bind Apache to specific IP addresses and/or +
-# ports, instead of the default. See also the <VirtualHost> +
-# directive. +
-+
-# Change this to Listen on specific IP addresses as shown below to  +
-# prevent Apache from glomming onto all bound IP addresses. +
-+
-#Listen 12.34.56.78:80 +
-Listen 8008 +
-PidFile /var/run/httpd/instance01.pid +
- +
-+
-# Dynamic Shared Object (DSO) Support +
-+
-# To be able to use the functionality of a module which was built as a DSO you +
-# have to place corresponding `LoadModule' lines at this location so the +
-# 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%) +
-</code>  +
- +
-Editez la directive **Listen** du fichier **/etc/httpd/conf/instance02.conf**  et ajoutez la directive **PidFile** : +
- +
-<code> +
-[root@centos8 ~]# vi /etc/httpd/conf/instance02.conf  +
-[root@centos8 ~]# more /etc/httpd/conf/instance02.conf  +
-+
-# This is the main Apache HTTP server configuration file.  It contains the +
-# configuration directives that give the server its instructions. +
-# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. +
-# In particular, see  +
-# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> +
-# for a discussion of each configuration directive. +
-+
-# See the httpd.conf(5) man page for more information on this configuration, +
-# and httpd.service(8) on using and configuring the httpd service. +
-+
-# Do NOT simply read the instructions in here without understanding +
-# what they do.  They're here only as hints or reminders.  If you are unsure +
-# consult the online docs. You have been warned.   +
-+
-# Configuration and logfile names: If the filenames you specify for many +
-# of the server's control files begin with "/" (or "drive:/" for Win32), the +
-# server will use that explicit path.  If the filenames do *not* begin +
-# with "/", the value of ServerRoot is prepended -- so 'log/access_log' +
-# with ServerRoot set to '/www' will be interpreted by the +
-# server as '/www/log/access_log', where as '/log/access_log' will be +
-# interpreted as '/log/access_log'+
- +
-+
-# ServerRoot: The top of the directory tree under which the server'+
-# configuration, error, and log files are kept. +
-+
-# Do not add a slash at the end of the directory path.  If you point +
-# ServerRoot at a non-local disk, be sure to specify a local disk on the +
-# Mutex directive, if file-based mutexes are used.  If you wish to share the +
-# same ServerRoot for multiple httpd daemons, you will need to change at +
-# least PidFile. +
-+
-ServerRoot "/etc/httpd" +
- +
-+
-# Listen: Allows you to bind Apache to specific IP addresses and/or +
-# ports, instead of the default. See also the <VirtualHost> +
-# directive. +
-+
-# Change this to Listen on specific IP addresses as shown below to  +
-# prevent Apache from glomming onto all bound IP addresses. +
-+
-#Listen 12.34.56.78:80 +
-Listen 8009  +
-PidFile /var/run/httpd/instance02.pid +
-+
-# Dynamic Shared Object (DSO) Support +
-+
-# To be able to use the functionality of a module which was built as a DSO you +
-# have to place corresponding `LoadModule' lines at this location so the +
-# 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%) +
-</code> +
- +
-Démarrez les deux services : +
- +
-<code> +
-[root@centos8 ~]# systemctl start httpd@instance01.service +
-[root@centos8 ~]# systemctl status httpd@instance01.service +
-● httpd@instance01.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd@instance01.service; disabled; vendor preset: disabled) +
-   Active: active (running) since Mon 2021-06-07 01:40:43 EDT; 7s ago +
-     Docs: man:httpd@.service(8) +
-  Process: 43854 ExecStartPre=/bin/chown root.apache /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) +
- Main PID: 43856 (httpd) +
-   Status: "Started, listening on: port 8008" +
-    Tasks: 213 (limit: 23719) +
-   Memory: 43.6M +
-   CGroup: /system.slice/system-httpd.slice/httpd@instance01.service +
-           ├─43856 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +
-           ├─43857 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +
-           ├─43858 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +
-           ├─43859 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +
-           └─43860 /usr/sbin/httpd -DFOREGROUND -f conf/instance01.conf +
- +
-Jun 07 01:40:43 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-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 +
-   Loaded: loaded (/usr/lib/systemd/system/httpd@instance02.service; disabled; vendor preset: disabled) +
-   Active: active (running) since Mon 2021-06-07 01:36:45 EDT; 4min 24s ago +
-     Docs: man:httpd@.service(8) +
-  Process: 43568 ExecStartPre=/bin/chown root.apache /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) +
- Main PID: 43569 (httpd) +
-   Status: "Running, listening on: port 8009" +
-    Tasks: 213 (limit: 23719) +
-   Memory: 43.6M +
-   CGroup: /system.slice/system-httpd.slice/httpd@instance02.service +
-           ├─43569 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +
-           ├─43571 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +
-           ├─43572 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +
-           ├─43573 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +
-           └─43574 /usr/sbin/httpd -DFOREGROUND -f conf/instance02.conf +
- +
-Jun 07 01:36:45 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 07 01:36:45 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +
-Jun 07 01:36:45 centos8.ittraining.loc httpd[43569]: Server configured, listening on: port 8009 +
-</code> +
- +
-===5.3 - Interdire la Modification du Statut d'un Service=== +
- +
-Il est possible d'interdire la modification en utilisant la commande **systemctl mask**: +
- +
-<code> +
-[root@centos8 ~]# systemctl status httpd.service +
-● httpd.service - The Apache HTTP Server +
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) +
-   Active: inactive (dead) +
-     Docs: man:httpd.service(8) +
- +
-Jun 07 18:27:25 centos8.ittraining.loc httpd[58535]: Server configured, listening on: port 80 +
-Jun 07 18:27:29 centos8.ittraining.loc systemd[1]: Stopping The Apache HTTP Server... +
-Jun 07 18:27:30 centos8.ittraining.loc systemd[1]: httpd.service: Succeeded. +
-Jun 07 18:27:30 centos8.ittraining.loc systemd[1]: Stopped The Apache HTTP Server. +
-Jun 07 18:27:32 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +
-Jun 07 18:27:32 centos8.ittraining.loc systemd[1]: Started 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 +
-Created symlink /etc/systemd/system/httpd.service → /dev/null. +
- +
-[root@centos8 ~]# systemctl enable httpd.service +
-Failed to enable unit: Unit file /etc/systemd/system/httpd.service is masked. +
- +
-[root@centos8 ~]# systemctl start httpd.service +
-Failed to start httpd.service: Unit httpd.service is masked. +
-</code> +
- +
-Pour autoriser de nouveau les modifications, il convient d'utiliser la commande **systemctl unmask** : +
- +
-<code> +
-[root@centos8 ~]# systemctl unmask httpd.service +
-Removed /etc/systemd/system/httpd.service. +
- +
-[root@centos8 ~]# systemctl enable 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 tmp]# systemctl list-units --type target | egrep "eme|res|gra|mul" | head -1 
 +  graphical.target       loaded active active Graphical Interface
  
-[root@centos8 ~]# systemctl status httpd.service +[root@redhat9 tmp]# runlevel 
-● httpd.service - The Apache HTTP Server +1 5
-   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) +
-   Active: active (running) since Mon 2021-06-07 18:30:59 EDT; 5s ago +
-     Docs: man:httpd.service(8) +
- Main PID: 59101 (httpd) +
-   Status: "Started, listening on: port 80" +
-    Tasks: 213 (limit: 23719) +
-   Memory: 39.4M +
-   CGroup: /system.slice/httpd.service +
-           ├─59101 /usr/sbin/httpd -DFOREGROUND +
-           ├─59102 /usr/sbin/httpd -DFOREGROUND +
-           ├─59103 /usr/sbin/httpd -DFOREGROUND +
-           ├─59104 /usr/sbin/httpd -DFOREGROUND +
-           └─59105 /usr/sbin/httpd -DFOREGROUND+
  
-Jun 07 18:30:59 centos8.ittraining.loc systemd[1]: Starting The Apache HTTP Server... +[root@redhat9 tmp]# who -r 
-Jun 07 18:30:59 centos8.ittraining.loc systemd[1]: Started The Apache HTTP Server. +         run-level 5  2024-10-24 11:50                   last=1
-Jun 07 18:31:00 centos8.ittraining.loc httpd[59101]: Server configured, listening on: port 80+
 </code> </code>
  
 =====Arrêt du Système===== =====Arrêt du Système=====
  
-Sous RHEL / CentOS 8 les commandes **halt**, **poweroff**, **reboot** et **shutdown** sont des liens symboliques vers **/bin/systemctl** :+Sous Red Hat 9 les commandes **halt**, **poweroff**, **reboot** et **shutdown** sont des liens symboliques vers **/bin/systemctl** :
  
 <code> <code>
-[root@centos8 ~]# ls -l /usr/sbin/shutdown /usr/sbin/halt /usr/sbin/poweroff /usr/sbin/reboot +[root@redhat9 tmp]# 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 Jul 18 13:00 /usr/sbin/halt -> ../bin/systemctl 
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/poweroff -> ../bin/systemctl +lrwxrwxrwx. 1 root root 16 Jul 18 13:00 /usr/sbin/poweroff -> ../bin/systemctl 
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/reboot -> ../bin/systemctl +lrwxrwxrwx. 1 root root 16 Jul 18 13:00 /usr/sbin/reboot -> ../bin/systemctl 
-lrwxrwxrwx. 1 root root 16 Apr  7 16:55 /usr/sbin/shutdown -> ../bin/systemctl+lrwxrwxrwx. 1 root root 16 Jul 18 13:00 /usr/sbin/shutdown -> ../bin/systemctl
 </code> </code>
  
Ligne 2139: Ligne 1747:
  
 <code> <code>
-[root@centos8 ~]# shutdown --help+[root@redhat9 tmp]# shutdown --help
 shutdown [OPTIONS...] [TIME] [WALL...] shutdown [OPTIONS...] [TIME] [WALL...]
  
 Shut down the system. Shut down the system.
  
 +Options:
      --help      Show this help      --help      Show this help
   -H --halt      Halt the machine   -H --halt      Halt the machine
Ligne 2152: Ligne 1761:
      --no-wall   Don't send wall message before halt/power-off/reboot      --no-wall   Don't send wall message before halt/power-off/reboot
   -c             Cancel a pending shutdown   -c             Cancel a pending shutdown
 +     --show      Show pending shutdown
 +
 +See the shutdown(8) man page for details.
 </code> </code>
  
Ligne 2168: Ligne 1780:
  
 <code> <code>
-[root@centos8 ~]# date && shutdown -t 60 -k +[root@redhat9 tmp]# date && shutdown -t 60 -k 
-Mon Jun  7 18:58:26 EDT 2021 +Thu Oct 24 11:53:34 AM CEST 2024 
-Shutdown scheduled for Mon 2021-06-07 18:59:26 EDT, use 'shutdown -c' to cancel.+Shutdown scheduled for Thu 2024-10-24 11:54:34 CEST, use 'shutdown -c' to cancel.
 </code> </code>
  
Ligne 2182: Ligne 1794:
  
 <code> <code>
-[root@centos8 ~]# reboot --help+[root@redhat9 tmp]# reboot --help
 reboot [OPTIONS...] [ARG] reboot [OPTIONS...] [ARG]
  
 Reboot the system. Reboot the system.
  
 +Options:
      --help      Show this help      --help      Show this help
      --halt      Halt the machine      --halt      Halt the machine
Ligne 2195: Ligne 1808:
   -d --no-wtmp   Don't write wtmp record   -d --no-wtmp   Don't write wtmp record
      --no-wall   Don't send wall message before halt/power-off/reboot      --no-wall   Don't send wall message before halt/power-off/reboot
 +
 +See the halt(8) man page for details.
 </code> </code>
  
Ligne 2206: Ligne 1821:
  
 <code> <code>
-[root@centos8 ~]# halt --help+[root@redhat9 tmp]# halt --help
 halt [OPTIONS...] halt [OPTIONS...]
  
 Halt the system. Halt the system.
  
 +Options:
      --help      Show this help      --help      Show this help
      --halt      Halt the machine      --halt      Halt the machine
Ligne 2219: Ligne 1835:
   -d --no-wtmp   Don't write wtmp record   -d --no-wtmp   Don't write wtmp record
      --no-wall   Don't send wall message before halt/power-off/reboot      --no-wall   Don't send wall message before halt/power-off/reboot
 +
 +See the halt(8) man page for details.
 </code> </code>
  
Ligne 2230: Ligne 1848:
  
 <code> <code>
-[root@centos8 ~]# poweroff --help+[root@redhat9 tmp]# poweroff --help
 poweroff [OPTIONS...] poweroff [OPTIONS...]
  
 Power off the system. Power off the system.
  
 +Options:
      --help      Show this help      --help      Show this help
      --halt      Halt the machine      --halt      Halt the machine
Ligne 2243: Ligne 1862:
   -d --no-wtmp   Don't write wtmp record   -d --no-wtmp   Don't write wtmp record
      --no-wall   Don't send wall message before halt/power-off/reboot      --no-wall   Don't send wall message before halt/power-off/reboot
 +
 +See the halt(8) man page for details.
 </code> </code>
  
 ----- -----
 Copyright © 2024 Hugh Norris. Copyright © 2024 Hugh Norris.
Menu