systemdservices:systemd_services
Différences
Ci-dessous, les différences entre deux révisions de la page.
systemdservices:systemd_services [2018/09/10 12:45] – créée ronan | systemdservices:systemd_services [2019/01/11 15:55] (Version actuelle) – rguyader | ||
---|---|---|---|
Ligne 16: | Ligne 16: | ||
===== add a service ===== | ===== add a service ===== | ||
- | # vi / | + | <code bash> |
- | # | + | vi / |
- | # | + | chmod 644 / |
- | # | + | systemctl --system daemon-reload |
- | # | + | systemctl start mon-service.service |
+ | systemctl enable mon-service.service | ||
+ | </ | ||
===== debugging ===== | ===== debugging ===== | ||
Ligne 35: | Ligne 37: | ||
bind mount : ' | bind mount : ' | ||
- | # mount --bind --make-rslave / $CHROOT | + | <code bash> |
- | # | + | mount --bind --make-rslave / $CHROOT |
- | + | mount --bind --make-rslave /dev/ $CHROOT/ | |
+ | </ | ||
===== Optimize ===== | ===== Optimize ===== | ||
- | # systemd-analyze | + | <code bash> |
- | # | + | systemd-analyze |
- | # | + | systemd-analyze blame |
+ | systemd-analyze critical-chain [UNIT...] | ||
+ | </ | ||
Graphs, dump, etc : http:// | Graphs, dump, etc : http:// | ||
Ligne 50: | Ligne 56: | ||
Systemd-bootchart : http:// | Systemd-bootchart : http:// | ||
- | # apt-get install graphviz | + | <code bash> |
- | # systemd-analyze plot > plot.svg | + | apt-get install graphviz |
- | # | + | systemd-analyze plot > plot.svg |
+ | systemd-analyze dot --order | dot -Tsvg > systemd.svg | ||
+ | </ | ||
See bootchart2 ? | See bootchart2 ? | ||
Ligne 63: | Ligne 71: | ||
===== Systemd delta ===== | ===== Systemd delta ===== | ||
- | # systemd-delta : To see all local configuration: | + | <code bash> |
- | # | + | systemd-delta : To see all local configuration: |
- | # | + | systemd-delta /run : To see all runtime configuration: |
- | # | + | systemd-delta systemd/ |
+ | systemd-delta --type=extended / | ||
+ | </ | ||
===== Systemd service files ===== | ===== Systemd service files ===== |
systemdservices/systemd_services.1536583553.txt.gz · Dernière modification : 2018/09/10 12:45 de ronan