差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
systemd [2017/10/27 22:41] jz |
systemd [2017/12/03 18:08] (目前版本) jz |
||
---|---|---|---|
行 1: | 行 1: | ||
====== Systemd ====== | ====== Systemd ====== | ||
- | ===== boot time analyze ===== | + | ===== Suspenad and hibernate ===== |
+ | <code bash> | ||
+ | systemctl suspend | ||
+ | systemctl hibernate | ||
+ | |||
+ | pmi action suspend | ||
+ | pmi action hibernate | ||
+ | </code> | ||
+ | |||
+ | ===== Boot time analyze ===== | ||
==== systemd-analyze ==== | ==== systemd-analyze ==== | ||
- | <code> | + | <code bash> |
systemd-analyze | systemd-analyze | ||
systemd-analyze blame | systemd-analyze blame | ||
行 11: | 行 20: | ||
==== systemd-bootchart ==== | ==== systemd-bootchart ==== | ||
- | <code> | + | <code bash> |
systemd-bootchart | systemd-bootchart | ||
</code> | </code> | ||
行 19: | 行 28: | ||
[[https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Analyzing_the_boot_process]] | [[https://wiki.archlinux.org/index.php/Improving_performance/Boot_process#Analyzing_the_boot_process]] | ||
- | ===== process ===== | + | ===== Process ===== |
- | <code> | + | |
+ | ==== Process info ==== | ||
+ | <code bash> | ||
systemd-cgls | systemd-cgls | ||
pstree | pstree | ||
</code> | </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> |