systemd-binfmt.service 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  5. # systemd is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or
  8. # (at your option) any later version.
  9. [Unit]
  10. Description=Set Up Additional Binary Formats
  11. Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5)
  12. Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
  13. Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
  14. DefaultDependencies=no
  15. Conflicts=shutdown.target
  16. After=proc-sys-fs-binfmt_misc.automount
  17. After=proc-sys-fs-binfmt_misc.mount
  18. Before=sysinit.target shutdown.target
  19. ConditionPathIsReadWrite=/proc/sys/
  20. ConditionDirectoryNotEmpty=|/lib/binfmt.d
  21. ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d
  22. ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d
  23. ConditionDirectoryNotEmpty=|/etc/binfmt.d
  24. ConditionDirectoryNotEmpty=|/run/binfmt.d
  25. [Service]
  26. Type=oneshot
  27. RemainAfterExit=yes
  28. ExecStart=/lib/systemd/systemd-binfmt
  29. TimeoutSec=90s