差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
systemd [2017/10/27 22:09] jz 建立 |
systemd [2017/12/03 18:08] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Systemd ====== | ====== Systemd ====== | ||
- | ===== boot time analyze ===== | + | ===== Suspenad and hibernate ===== |
- | <code> | + | <code bash> |
+ | systemctl suspend | ||
+ | systemctl hibernate | ||
+ | |||
+ | pmi action suspend | ||
+ | pmi action hibernate | ||
+ | </code> | ||
+ | |||
+ | ===== Boot time analyze ===== | ||
+ | |||
+ | ==== systemd-analyze ==== | ||
+ | <code bash> | ||
systemd-analyze | systemd-analyze | ||
systemd-analyze blame | systemd-analyze blame | ||
- | systemd-analyze plot > /tmp/plot/svn | + | systemd-analyze plot > /tmp/plot.svg |
+ | </code> | ||
+ | |||
+ | ==== systemd-bootchart ==== | ||
+ | <code bash> | ||
+ | systemd-bootchart | ||
+ | </code> | ||
+ | |||
+ | [[https://wiki.gentoo.org/wiki/Systemd#systemd-bootchart]] | ||
+ | |||
+ | [[https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Analyzing_the_boot_process]] | ||
+ | |||
+ | ===== Process ===== | ||
+ | |||
+ | ==== Process info ==== | ||
+ | <code bash> | ||
+ | systemd-cgls | ||
+ | pstree | ||
+ | </code> | ||
+ | |||
+ | ==== Kill process ==== | ||
+ | <code bash> | ||
+ | # SIGTERM | ||
+ | systemctl kill service-name.service | ||
+ | |||
+ | # SIGKILL | ||
+ | systemctl kill -s SIGKILL service-name.service | ||
+ | |||
+ | # HUP | ||
+ | systemctl kill -s HUP --kill-who=main service-name.service | ||
</code> | </code> |