]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/systemd-modules-load.service.in
fs-util: no need for fchmod_and_chown() to access /proc/self/fd directly
[thirdparty/systemd.git] / units / systemd-modules-load.service.in
... / ...
CommitLineData
1# SPDX-License-Identifier: LGPL-2.1+
2#
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=Load Kernel Modules
12Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
13DefaultDependencies=no
14Conflicts=shutdown.target
15Before=sysinit.target shutdown.target
16ConditionCapability=CAP_SYS_MODULE
17ConditionDirectoryNotEmpty=|/lib/modules-load.d
18ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
19ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
20ConditionDirectoryNotEmpty=|/etc/modules-load.d
21ConditionDirectoryNotEmpty=|/run/modules-load.d
22ConditionKernelCommandLine=|modules-load
23ConditionKernelCommandLine=|rd.modules-load
24
25[Service]
26Type=oneshot
27RemainAfterExit=yes
28ExecStart=@rootlibexecdir@/systemd-modules-load
29TimeoutSec=90s