]> git.proxmox.com Git - systemd.git/blame - units/systemd-binfmt.service.in
Fix boot-and-services autopkgtest
[systemd.git] / units / systemd-binfmt.service.in
CommitLineData
a032b68d 1# SPDX-License-Identifier: LGPL-2.1-or-later
52ad194e 2#
663996b3
MS
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
10[Unit]
11Description=Set Up Additional Binary Formats
12Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5)
086111aa 13Documentation=https://docs.kernel.org/admin-guide/binfmt-misc.html
b012e921 14Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
663996b3
MS
15DefaultDependencies=no
16Conflicts=shutdown.target
5eef597e 17After=proc-sys-fs-binfmt_misc.automount
e1f67bc7 18After=proc-sys-fs-binfmt_misc.mount
ea0999c9 19After=local-fs.target
663996b3
MS
20Before=sysinit.target shutdown.target
21ConditionPathIsReadWrite=/proc/sys/
22ConditionDirectoryNotEmpty=|/lib/binfmt.d
23ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d
24ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d
25ConditionDirectoryNotEmpty=|/etc/binfmt.d
26ConditionDirectoryNotEmpty=|/run/binfmt.d
27
28[Service]
29Type=oneshot
30RemainAfterExit=yes
8b3d4ff0
MB
31ExecStart={{ROOTLIBEXECDIR}}/systemd-binfmt
32ExecStop={{ROOTLIBEXECDIR}}/systemd-binfmt --unregister
e3bff60a 33TimeoutSec=90s