systemd-bsod.service
摘要
systemd-bsod.service 用于在启动过程中发生严重故障时显示全屏蓝屏信息,其中包含故障相关日志和可扫描的二维码,帮助用户获取进一步排障信息。文档列出了 systemd-bsod 可执行程序的参数,包括显示帮助、显示版本、持续监听日志中的紧急消息(--continuous,v255 引入)以及指定输出终端(--tty,v256 引入)。返回码约定为成功显示日志时返回 0,否则返回非零错误码。
荐读理由
systemd-bsod 能在 boot 失败时直接在 VT 终端全屏展示系统日志、包括可扫码的应急信息,独立开发者可在产品中集成此功能直接提供用户实时故障引导
原文
Index· Directivessystemd 257.13
Name
systemd-bsod.service, systemd-bsod — Displays boot-time emergency log message in full screen
Synopsis
systemd-bsod.service
/usr/lib/systemd/systemd-bsod [OPTIONS...]
Description¶
systemd-bsod.service is used to display a blue screen which contains a message relating to a boot failure, including a QR code which can be scanned to get helpful information about the failure.
Options¶
The following options are understood by systemd-bsod:
-h, --help¶
Print a short help text and exit.
--version¶
Print a short version string and exit.
-c, --continuous¶
When specified, systemd-bsod waits continuously for changes in the journal if it does not find any emergency messages on the initial attempt.
Added in version 255.
--tty=*``*¶
Specify the TTY to output to. By default, systemd-bsod will automatically find a free VT to display the message on. If this option is specified a TTY may be selected explicitly. Use --tty=/dev/tty to direct output to the terminal the command is invoked on.
Added in version 256.
Exit status¶
On success (displaying the journal message successfully), 0 is returned, a non-zero failure code otherwise.
See Also¶
这条对你有帮助吗?