linux - 在/var/log/messages中,: Watching system buttons [.是什么..] Power Button

标签 linux logging redhat systemd

目前正在阅读 /var/log/messages,我可以看到:

*systemd-logind: Watching power buttons on /dev/input/event0 (Power Button)*

*systemd-logind: Watching power buttons on /dev/input/event1 (Sleep Button)*

这些条目在 RHEL 系统上意味着什么?

最佳答案

那些只是意味着 systemd-logind服务检测到硬件电源和 sleep 按钮,并正在观察是否按下了其中一个。如果按下它们,那么 systemd-logind 将处理要执行的操作。

来自文档:

systemd-logind is a system service that manages user logins. It is responsible for:
    ...snip...
    * Handling of power/sleep hardware keys
    ...snip...

关于linux - 在/var/log/messages中,: Watching system buttons [.是什么..] Power Button,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52517184/

相关文章:

c# - Serilog:如何排除多个来源

linux - nginx permission denied 错误获取

linux - 每 15 分钟运行一次 crontab 不适用于 linux redhat

java - JBoss集群和RHCS有什么区别?

java - 如何更新 Logback 中 SMTPAppender 上的 "to"地址?

java - 奇怪的 JUnit 日志记录行为

c - 在调用 execl() 之后退出 (0) 是否有意义?

python os.system 阻止向后命令

c++ - 尽管文件存在,但已编译的 C++ 程序在另一个系统上引发 "cannot open shared object file"

c - 为什么有些函数不涉及内核?