【问题标题】:proc-sys-fs-binfmt_misc.automount failed serviceproc-sys-fs-binfmt_misc.automount 服务失败
【发布时间】:2015-04-13 21:50:29
【问题描述】:

我刚刚安装了 systemd,但我有一个失败的服务,proc-sys-fs-binfmt_misc.automount

我在这里看到它是 systemd 的一部分:

https://github.com/systemd/systemd/blob/master/units/proc-sys-fs-binfmt_misc.automount

这个文件重要吗?如何解决激活问题?

在我的 systemctl 状态下

Last login: Mon Apr 13 23:13:19 2015 from nor75-18-82-241-236-193.fbx.proxad.net
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 Syste               m 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

【问题讨论】:

  • 请版主将此迁移到 unix.stackexchange.com。这不是编程问题。

标签: linux service startup systemd


【解决方案1】:

对于那些想要禁用 proc-sys-fs-binfmt_misc.automount 的人(例如,如果您处于 autofs 不可用的容器化环境中),请注意 systemctl disable 不起作用,但是

systemctl mask proc-sys-fs-binfmt_misc.automount

会。

【讨论】:

    【解决方案2】:

    为了使用 systemd 的.automount 单元,systemd 尝试打开 /dev/autofs。如果您的系统上没有 autofs 文件系统,则所有 .automount 单元文件都无法启动。 所以首先要确保你的系统确实支持自动文件系统。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-20
      • 1970-01-01
      • 2021-10-23
      • 2013-08-27
      • 2013-06-27
      • 1970-01-01
      • 2021-12-23
      • 1970-01-01
      相关资源
      最近更新 更多