Séb*_*ien 8 linux service failed systemd
我正在使用 ubuntu 14.10。
我刚刚安装了 systemd 并且我有一个失败的服务,proc-sys-fs-binfmt_misc.automount.
我在这里看到它是以下内容的一部分systemd:
这个文件重要吗?如何解决激活问题?
的输出systemctl status:
svassaux@vps127101:~$ systemctl status
proc-sys-fs-binfmt_misc.automount -> '/org/freedesktop/systemd1/unit/proc_2dsys_2dfs_2dbinfmt_5fmisc_2eautomount'
proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point
Loaded: loaded (/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
http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Run Code Online (Sandbox Code Playgroud)
编辑:我的单位文件:
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=Arbitrary Executable File Formats File System Automount Point
Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
DefaultDependencies=no
Before=sysinit.target
ConditionPathExists=/proc/sys/fs/binfmt_misc/
ConditionPathIsReadWrite=/proc/sys/
[Automount]
Where=/proc/sys/fs/binfmt_misc
Run Code Online (Sandbox Code Playgroud)
binfmt_misc 机制用于注册“异国情调”二进制格式的处理程序,以使内核能够直接执行此类文件。正如使用 /lib*/ld-linux*.so.2 执行普通 ELF 二进制文件以及通过其第一个“shebang”行上的任何内容执行各种脚本一样,任何其他文件格式都可以通过告诉内核如何执行来执行识别格式和运行内容。binfmt_misc 机制最常见的用户可能是 WINE,它需要它才能使用“./program.exe”运行 Windows 可执行文件。
因此,除非您使用 WINE 功能的此功能,否则我猜您的系统即使使用非功能性的 binfmt_misc 机制也能正常工作。
至于为什么在您的系统上激活自动挂载单元失败,如果不检查系统日志(至少)是不可能知道的。自动安装装置非常轻,因此不太可能发生故障。我猜您的问题可能与系统上的某些非标准安全或资源限制设置有关。
您可以使用 来仔细查看发生故障的单元journalctl _SYSTEMD_UNIT=proc-sys-fs-binfmt_misc.automount。如果这没有帮助,请尝试journalctl -b找到设备无法启动的点并查找可能相关的任何错误。
| 归档时间: |
|
| 查看次数: |
4390 次 |
| 最近记录: |