Hardware

如何檢查系統是否正常關機?

  • November 10, 2020

如何檢查系統是否正常關機?

是否有任何登錄/var/log/messages表明上次關機是正常關機?

它非常特定於 Linux 發行版/Unix。至於 Fedora 33(不/var/log/messages,這些是 journalctl 消息):

Nov 09 21:22:16 zen systemd-shutdown[1]: Syncing filesystems and block devices.
Nov 09 21:22:16 zen systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Nov 09 21:22:16 zen systemd-journald[1169]: Journal stopped

引用自:https://unix.stackexchange.com/questions/618849