aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-19 03:04:09 +0100
committerBill Nottingham <notting@redhat.com>2010-11-21 22:57:26 -0500
commit37ef742fe24e27db2def8bc5a84ee57a377179ca (patch)
treecce5b302164ec226db38b4d18844c8a4603e27c0 /systemd
parente778cad285882e3251d7c60088bfa2ac50f09693 (diff)
downloadinitscripts-37ef742fe24e27db2def8bc5a84ee57a377179ca.tar
initscripts-37ef742fe24e27db2def8bc5a84ee57a377179ca.tar.gz
initscripts-37ef742fe24e27db2def8bc5a84ee57a377179ca.tar.bz2
initscripts-37ef742fe24e27db2def8bc5a84ee57a377179ca.tar.xz
initscripts-37ef742fe24e27db2def8bc5a84ee57a377179ca.zip
systemd: run fedora-loadmodules only if there's something configured
Diffstat (limited to 'systemd')
-rw-r--r--systemd/system/fedora-loadmodules.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/systemd/system/fedora-loadmodules.service b/systemd/system/fedora-loadmodules.service
index aac773b8..426d1710 100644
--- a/systemd/system/fedora-loadmodules.service
+++ b/systemd/system/fedora-loadmodules.service
@@ -6,10 +6,11 @@ Before=basic.target shutdown.target emergency.service emergency.target
#Conflicts=sysinit.service
After=udev.service
Requires=udev.service
+ConditionFileExists=/etc/rc.modules
+ConditionDirectoryNotEmpty=/etc/sysconfig/modules/
[Service]
ExecStart=/lib/systemd/fedora-loadmodules
Type=oneshot
TimeoutSec=0
RemainAfterExit=yes
-