2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2011-04-04 05:36:42 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04: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 05:36:42 +04:00
# (at your option) any later version.
[Unit]
Description = Set Up Additional Binary Formats
2012-05-31 18:00:34 +04:00
Documentation = man:systemd-binfmt.service(8) man:binfmt.d(5)
2018-04-14 16:15:19 +03:00
Documentation = https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html
Documentation = https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
2011-04-04 05:36:42 +04:00
DefaultDependencies = no
Conflicts = shutdown.target
2014-08-26 23:17:22 +04:00
After = proc-sys-fs-binfmt_misc.automount
2019-09-18 13:01:41 +03:00
After = proc-sys-fs-binfmt_misc.mount
2011-04-04 05:36:42 +04:00
Before = sysinit.target shutdown.target
2012-04-13 19:39:37 +04:00
ConditionPathIsReadWrite = /proc/sys/
2012-05-31 18:00:34 +04:00
ConditionDirectoryNotEmpty = |/lib/binfmt.d
2011-05-01 01:08:15 +04:00
ConditionDirectoryNotEmpty = |/usr/lib/binfmt.d
ConditionDirectoryNotEmpty = |/usr/local/lib/binfmt.d
ConditionDirectoryNotEmpty = |/etc/binfmt.d
ConditionDirectoryNotEmpty = |/run/binfmt.d
2011-04-04 05:36:42 +04:00
[Service]
Type = oneshot
RemainAfterExit = yes
ExecStart = @rootlibexecdir@/systemd-binfmt
2015-04-17 04:41:18 +03:00
TimeoutSec = 90s