Outils pour utilisateurs

Outils du site


systemdservices:systemd_services

Différences

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

Lien vers cette vue comparative

systemdservices:systemd_services [2018/09/10 12:45] – créée ronansystemdservices:systemd_services [2019/01/11 15:55] (Version actuelle) rguyader
Ligne 16: Ligne 16:
 ===== add a service ===== ===== add a service =====
  
-  # vi /etc/systemd/system/<service_name>.service +<code bash> 
-  # chmod 644 /etc/systemd/system/<service_name>.service +vi /etc/systemd/system/<service_name>.service 
-  # systemctl --system daemon-reload +chmod 644 /etc/systemd/system/<service_name>.service 
-  # systemctl start mon-service.service +systemctl --system daemon-reload 
-  # systemctl enable mon-service.service+systemctl start mon-service.service 
 +systemctl enable mon-service.service 
 +</code>
  
 ===== debugging ===== ===== debugging =====
Ligne 35: Ligne 37:
 bind mount : 'umount $CHROOT/dev' will unmount /dev !  bind mount : 'umount $CHROOT/dev' will unmount /dev ! 
  
-  # mount --bind --make-rslave / $CHROOT +<code bash> 
-  # mount --bind --make-rslave /dev/ $CHROOT/dev +mount --bind --make-rslave / $CHROOT 
-  +mount --bind --make-rslave /dev/ $CHROOT/dev 
 +</code> 
 ===== Optimize ===== ===== Optimize =====
  
-  # systemd-analyze +<code bash> 
-  # systemd-analyze blame +systemd-analyze 
-  # systemd-analyze critical-chain [UNIT...]+systemd-analyze blame 
 +systemd-analyze critical-chain [UNIT...] 
 +</code>
  
 Graphs, dump, etc : http://www.freedesktop.org/software/systemd/man/systemd-analyze.html Graphs, dump, etc : http://www.freedesktop.org/software/systemd/man/systemd-analyze.html
Ligne 50: Ligne 56:
 Systemd-bootchart : http://www.freedesktop.org/software/systemd/man/systemd-bootchart.html Systemd-bootchart : http://www.freedesktop.org/software/systemd/man/systemd-bootchart.html
  
-  # apt-get install graphviz +<code bash> 
-  # systemd-analyze plot > plot.svg +apt-get install graphviz 
-  # systemd-analyze dot --order | dot -Tsvg > systemd.svg+systemd-analyze plot > plot.svg 
 +systemd-analyze dot --order | dot -Tsvg > systemd.svg 
 +</code>
  
 See bootchart2 ? See bootchart2 ?
Ligne 63: Ligne 71:
 ===== Systemd delta ===== ===== Systemd delta =====
  
-  # systemd-delta : To see all local configuration: +<code bash> 
-  # systemd-delta /run : To see all runtime configuration: +systemd-delta : To see all local configuration: 
-  # systemd-delta systemd/system : To see all system unit configuration changes: +systemd-delta /run : To see all runtime configuration: 
-  # systemd-delta --type=extended /run/systemd/system : To see all runtime "drop-in" changes for system units:+systemd-delta systemd/system : To see all system unit configuration changes: 
 +systemd-delta --type=extended /run/systemd/system : To see all runtime "drop-in" changes for system units: 
 +</code>
  
 ===== Systemd service files ===== ===== Systemd service files =====
systemdservices/systemd_services.1536583553.txt.gz · Dernière modification : 2018/09/10 12:45 de ronan