Systemd 有几个失败的服务,我不知道如何解决:
# systemctl --failed
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount loaded failed failed Arbitrary Executable File Formats File System Automount Point
systemd-binfmt.service loaded failed failed Set Up Additional Binary Formats
更多细节:
# systemctl status systemd-binfmt.service
systemd-binfmt.service - Set Up Additional Binary Formats
Loaded: loaded (/usr/lib/systemd/system/systemd-binfmt.service; static)
Active: failed (Result: exit-code) since Tue, 2012-11-27 07:42:11 CST; 36min ago
Docs: man:systemd-binfmt.service(8)
man:binfmt.d(5)
https://www.kernel.org/doc/Documentation/binfmt_misc.txt
Process: 213 ExecStart=/usr/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/systemd-binfmt.service
# systemctl status proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
Loaded: loaded (/usr/lib/systemd/system/proc-sys-fs-binfmt_misc.automount; static)
Active: failed (Result: resources)
Where: /proc/sys/fs/binfmt_misc
Docs: https://www.kernel.org/doc/Documentation/binfmt_misc.txt
有什么建议么?
答案1
当 systemd 单元发生故障时,您可以执行多种操作。journalctl -u [unit-name]
将显示该单元生成的所有输出。journalctl -f
在停止和启动服务时运行也很有帮助。
systemd 附带的许多单元文件都有关联的手册页。尝试man [unit-name]
。此外,单元文件可以指向它们自己的文档。手册systemd-bnfmt.service
页和这两个状态输出都指向 binfmt_misc.txt。该文档包含大量有关注册二进制文件解释器的信息。如果查看日志没有产生任何有用的信息,我会查看 binfmt.d 中的配置并手动注册解释器,看看会发生什么。