有没有办法确定RHEL7服务器是否通过systemctl(或reboot / shutdown别名)重新启动,或者服务器是否崩溃?Pre-systemd 这很容易用 确定last -x runlevel,但用 RHEL7 就不太清楚了。
last -x runlevel
server-crashes system-monitoring systemd rhel7
rhel7 ×1
server-crashes ×1
system-monitoring ×1
systemd ×1