根据“last”的输出,哪些服务/作业正在启动这些重新启动

根据“last”的输出,哪些服务/作业正在启动这些重新启动

对下面的输出有几个问题。一个问题是,是什么导致这些重新启动?比如什么 systemd 服务或 cron 作业?我查看了 cronjobs,它们都与重新启动无关。我还查看了 systemctl、journalctl,但找不到有关哪些进程/设置/作业启动这些重新启动的任何详细信息。

另外,我的假设是否正确,因为我看到内核版本号随着时间的推移而增加,我们的系统正在通过这些重新启动来更新内核?

这些问题的背景是,在 11 月 12 日系统重新启动后,它覆盖了我们的 /etc/resolv.conf 并破坏了我们的服务。我们希望防止这种情况再次发生。最重要的是,我们将使我们的 DNS 设置能够适应变化;但我们还想找到这些重新启动的根本原因以及后续的内核更新。

谢谢!

$ last | grep boot
reboot   system boot  4.18.0-425.3.1.e Tue Nov 15 14:49   still running
reboot   system boot  4.18.0-425.3.1.e Tue Nov 15 14:37 - 14:49  (00:11)
reboot   system boot  4.18.0-425.3.1.e Sat Nov 12 06:17 - 14:49 (3+08:31)
reboot   system boot  4.18.0-372.26.1. Sat Oct 15 06:06 - 06:16 (28+00:09)
reboot   system boot  4.18.0-372.19.1. Sat Oct  8 12:05 - 06:16 (34+18:10)
reboot   system boot  4.18.0-372.19.1. Sat Oct  1 12:05 - 12:04 (6+23:59)
reboot   system boot  4.18.0-372.19.1. Sat Sep 24 12:04 - 12:04 (7+00:00)
reboot   system boot  4.18.0-372.19.1. Sat Sep 17 12:09 - 12:03 (6+23:54)
reboot   system boot  4.18.0-372.16.1. Sat Sep 10 12:03 - 12:08 (7+00:04)
reboot   system boot  4.18.0-372.16.1. Sat Sep  3 12:04 - 12:03 (6+23:58)
reboot   system boot  4.18.0-372.16.1. Sat Aug 27 12:05 - 12:04 (6+23:59)
reboot   system boot  4.18.0-372.16.1. Sat Aug 20 12:05 - 12:04 (6+23:59)
reboot   system boot  4.18.0-372.16.1. Sat Aug 13 12:05 - 12:04 (13+23:58)
reboot   system boot  4.18.0-372.13.1. Sat Aug  6 12:05 - 12:05 (7+00:00)
reboot   system boot  4.18.0-372.13.1. Sat Jul 30 12:06 - 12:04 (6+23:58)
reboot   system boot  4.18.0-372.13.1. Fri Jul 29 14:44 - 12:04  (21:19)
reboot   system boot  4.18.0-372.13.1. Sat Jul 23 12:06 - 12:04 (6+23:57)
reboot   system boot  4.18.0-372.9.1.e Mon Jul 18 14:04 - 12:04 (11+22:00)
reboot   system boot  4.18.0-372.9.1.e Thu Jul 14 14:01 - 12:04 (15+22:03)
reboot   system boot  4.18.0-372.9.1.e Wed Jun 22 13:01 - 14:00 (22+00:58)

我运行的命令:(如果您想查看这些输出中的任何一个,请告诉我!)

$ last reboot
$ last -F | grep "Nov 12"
$ sudo journalctl --list-boots
$ sudo journalctl -b -3 -n
$ find /boot/vmlinuz-4.18.0-*
$ find /boot/vmli*
$ stat /boot/vmlinuz-4.18.0-425.3.1.el8.x86_64
$ sudo journalctl --boot | grep "Linux version"
$ sudo systemctl --type=service
$ sudo crontab -l

编辑:请求的命令和输出

$ last -x shutdown
shutdown system down  4.18.0-425.3.1.e Tue Nov 15 14:49 - 14:49  (00:00)
shutdown system down  4.18.0-372.26.1. Sat Nov 12 06:16 - 06:17  (00:00)
shutdown system down  4.18.0-372.19.1. Sat Oct  8 12:04 - 12:05  (00:00)
shutdown system down  4.18.0-372.19.1. Sat Oct  1 12:04 - 12:05  (00:00)
shutdown system down  4.18.0-372.19.1. Sat Sep 24 12:03 - 12:04  (00:00)
shutdown system down  4.18.0-372.16.1. Sat Sep 17 12:08 - 12:09  (00:00)
shutdown system down  4.18.0-372.16.1. Sat Sep 10 12:03 - 12:03  (00:00)
shutdown system down  4.18.0-372.16.1. Sat Sep  3 12:04 - 12:04  (00:00)
shutdown system down  4.18.0-372.16.1. Sat Aug 27 12:04 - 12:05  (00:00)
shutdown system down  4.18.0-372.13.1. Sat Aug 13 12:05 - 12:05  (00:00)
shutdown system down  4.18.0-372.13.1. Sat Aug  6 12:04 - 12:05  (00:00)
shutdown system down  4.18.0-372.13.1. Sat Jul 30 12:04 - 12:06  (00:01)
shutdown system down  4.18.0-372.9.1.e Thu Jul 14 14:00 - 14:01  (00:00)
shutdown system down  4.18.0-372.9.1.e Wed Jun 22 13:01 - 13:01  (00:00)

相关内容