]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-binfmt.service.in
fileio: add brief explanations for flags
[thirdparty/systemd.git] / units / systemd-binfmt.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
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]
11Description=Set Up Additional Binary Formats
9393a877 12Documentation=man:systemd-binfmt.service(8) man:binfmt.d(5)
de03b295 13Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
14Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
151b190e
LP
15DefaultDependencies=no
16Conflicts=shutdown.target
d6bc8348 17After=proc-sys-fs-binfmt_misc.automount
50813391 18After=proc-sys-fs-binfmt_misc.mount
151b190e 19Before=sysinit.target shutdown.target
41807efb 20ConditionPathIsReadWrite=/proc/sys/
9393a877 21ConditionDirectoryNotEmpty=|/lib/binfmt.d
adf70c5e
KS
22ConditionDirectoryNotEmpty=|/usr/lib/binfmt.d
23ConditionDirectoryNotEmpty=|/usr/local/lib/binfmt.d
24ConditionDirectoryNotEmpty=|/etc/binfmt.d
25ConditionDirectoryNotEmpty=|/run/binfmt.d
151b190e
LP
26
27[Service]
28Type=oneshot
29RemainAfterExit=yes
30ExecStart=@rootlibexecdir@/systemd-binfmt
846acb67 31ExecStop=@rootlibexecdir@/systemd-binfmt --unregister
b53374f9 32TimeoutSec=90s