这个关机日志是怎么弄出来的?

最大的社区版本,Ubuntu的发源地
回复
科学之子
帖子: 2284
注册时间: 2013-05-26 6:58
系统: Debian 9

这个关机日志是怎么弄出来的?

#1

帖子 科学之子 » 2017-04-11 23:14

这个关机日志是怎么弄出来的?
https://superuser.com/questions/767414/ ... ing-reboot

代码: 全选

[  OK  ] Stopped Network Time Service (one-shot ntpdate mode).
         Stopping Modem and VPN connections autoconnect...
         Stopping Login Service...
         Stopping LSB: Avahi mDNS/DNS-SD Daemon...
[  OK  ] Stopped Monitoring free system resources.
[  OK  ] Stopped Monitoring dropbear socket.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped Modem and VPN c[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyO0.
[  OK  ] Unmounted /var/lib/opkg.
[  OK  ] Stopped Network Manager.
[  OK  ] Stopped LSB: Avahi mDNS/DNS-SD Daemon.
         Stopping D-Bus System Message Bus...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped Suspend manager.
......
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 这个关机日志是怎么弄出来的?

#2

帖子 vickycq » 2017-04-11 23:29

唯一能想到的办法:在另一台计算机上使用串口通信工具连接到目标计算机的串口并登录,执行关机命令,可在另一台计算机的串口通信工具中看到目标计算机的关机日志。

看看 https://github.com/farseerfc/systemd-shutdown-diagnose
(可用于定位关机问题,但不能记录主楼帖子中的关机日志)
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复