]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
a7df2d1e | 2 | # |
151b190e LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
151b190e LP |
8 | # (at your option) any later version. |
9 | ||
10 | [Unit] | |
11 | Description=Set Up Additional Binary Formats | |
9393a877 | 12 | Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5) |
0e685823 | 13 | Documentation=https://docs.kernel.org/admin-guide/binfmt-misc.html |
de03b295 | 14 | Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems |
151b190e LP |
15 | DefaultDependencies=no |
16 | Conflicts=shutdown.target | |
d6bc8348 | 17 | After=proc-sys-fs-binfmt_misc.automount |
50813391 | 18 | After=proc-sys-fs-binfmt_misc.mount |
0491ab5f | 19 | After=local-fs.target |
151b190e | 20 | Before=sysinit.target shutdown.target |
41807efb | 21 | ConditionPathIsReadWrite=/proc/sys/ |
9393a877 | 22 | ConditionDirectoryNotEmpty=|/lib/binfmt.d |
adf70c5e KS |
23 | ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d |
24 | ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d | |
25 | ConditionDirectoryNotEmpty=|/etc/binfmt.d | |
26 | ConditionDirectoryNotEmpty=|/run/binfmt.d | |
151b190e LP |
27 | |
28 | [Service] | |
29 | Type=oneshot | |
30 | RemainAfterExit=yes | |
059cc610 ZJS |
31 | ExecStart={{ROOTLIBEXECDIR}}/systemd-binfmt |
32 | ExecStop={{ROOTLIBEXECDIR}}/systemd-binfmt --unregister | |
b53374f9 | 33 | TimeoutSec=90s |