summaryrefslogtreecommitdiff
path: root/units/fedora/rc-local.service
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-12-02 10:18:46 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-12-02 11:29:48 +0100
commit156730831730701cada2750e826abbf7b113861f (patch)
tree398a1262c3a7aa2cd0039781ada8d97928d8c920 /units/fedora/rc-local.service
parent42e87475cfe20a5e79da882012629f9d3ae63648 (diff)
add a generator to pull rc-local.service in
rc-local.service acts as an ordering barrier even if its condition is false, because conditions are evaluated when the service is about to be started. To avoid the ordering barrier in a legacy-free system, add a generator to pull rc-local.service into the transaction only if the script is executable. If/when we rewrite SysV compatibility into a generator, this one can become a part of it.
Diffstat (limited to 'units/fedora/rc-local.service')
-rw-r--r--units/fedora/rc-local.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/units/fedora/rc-local.service b/units/fedora/rc-local.service
index 106b12c677..fade90c8da 100644
--- a/units/fedora/rc-local.service
+++ b/units/fedora/rc-local.service
@@ -5,8 +5,10 @@
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
+# This unit gets pulled automatically into multi-user.target by
+# systemd-rc-local-generator if /etc/rc.d/rc.local is executable.
[Unit]
-Description=/etc/rc.local Compatibility
+Description=/etc/rc.d/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.d/rc.local
[Service]