2020-11-09 13:23:58 +09:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 17:35:03 +01:00
#
2011-04-04 03:36:42 +02:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 00:20:58 +02:00
# 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
2011-04-04 03:36:42 +02:00
# (at your option) any later version.
[Unit]
Description = Set Up Additional Binary Formats
2012-05-31 16:00:34 +02:00
Documentation = man:systemd-binfmt.service(8) man:binfmt.d(5)
2022-07-04 17:26:30 +03:00
Documentation = https://docs.kernel.org/admin-guide/binfmt-misc.html
2024-05-28 14:38:22 +02:00
Documentation = https://systemd.io/API_FILE_SYSTEMS
2011-04-04 03:36:42 +02:00
DefaultDependencies = no
Conflicts = shutdown.target
2014-08-26 21:17:22 +02:00
After = proc-sys-fs-binfmt_misc.automount
2019-09-18 12:01:41 +02:00
After = proc-sys-fs-binfmt_misc.mount
2021-11-16 09:19:07 +01:00
After = local-fs.target
2011-04-04 03:36:42 +02:00
Before = sysinit.target shutdown.target
2022-12-10 11:46:45 +09:00
ConditionPathIsMountPoint = /proc/sys/fs/binfmt_misc
2012-05-31 16:00:34 +02:00
ConditionDirectoryNotEmpty = |/lib/binfmt.d
2011-04-30 23:08:15 +02:00
ConditionDirectoryNotEmpty = |/usr/lib/binfmt.d
ConditionDirectoryNotEmpty = |/usr/local/lib/binfmt.d
ConditionDirectoryNotEmpty = |/etc/binfmt.d
ConditionDirectoryNotEmpty = |/run/binfmt.d
2011-04-04 03:36:42 +02:00
[Service]
Type = oneshot
RemainAfterExit = yes
2023-06-12 02:15:19 +01:00
ExecStart = {{LIBEXECDIR}}/systemd-binfmt
ExecStop = {{LIBEXECDIR}}/systemd-binfmt --unregister
2015-04-16 21:41:18 -04:00
TimeoutSec = 90s