]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-modules-load.service.in
Merge pull request #14017 from poettering/analyze-calendar-tweaks
[thirdparty/systemd.git] / units / systemd-modules-load.service.in
CommitLineData
a7df2d1e
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
b2423f1f
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
b2423f1f
LP
8# (at your option) any later version.
9
10[Unit]
11Description=Load Kernel Modules
9393a877 12Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
b2423f1f
LP
13DefaultDependencies=no
14Conflicts=shutdown.target
e096bf2f 15Before=sysinit.target shutdown.target
5cd6eef6 16ConditionCapability=CAP_SYS_MODULE
adf70c5e
KS
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
22cfbae0
MS
22ConditionKernelCommandLine=|modules-load
23ConditionKernelCommandLine=|rd.modules-load
b2423f1f
LP
24
25[Service]
26Type=oneshot
449ddb2d 27RemainAfterExit=yes
b2423f1f 28ExecStart=@rootlibexecdir@/systemd-modules-load
b53374f9 29TimeoutSec=90s