aboutsummaryrefslogtreecommitdiffstats
path: root/usr/lib/systemd/system/fedora-loadmodules.service
diff options
context:
space:
mode:
Diffstat (limited to 'usr/lib/systemd/system/fedora-loadmodules.service')
-rw-r--r--usr/lib/systemd/system/fedora-loadmodules.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/fedora-loadmodules.service b/usr/lib/systemd/system/fedora-loadmodules.service
new file mode 100644
index 00000000..641e7711
--- /dev/null
+++ b/usr/lib/systemd/system/fedora-loadmodules.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Load legacy module configuration
+DefaultDependencies=no
+Conflicts=shutdown.target
+Before=sysinit.target shutdown.target
+ConditionPathExists=|/etc/rc.modules
+ConditionDirectoryNotEmpty=|/etc/sysconfig/modules/
+
+[Service]
+ExecStart=/usr/lib/systemd/fedora-loadmodules
+Type=oneshot
+TimeoutSec=0
+RemainAfterExit=yes
+
+[Install]
+WantedBy=sysinit.target