summaryrefslogtreecommitdiff
path: root/units/suse/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/suse/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/suse/rc-local.service')
-rw-r--r--units/suse/rc-local.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/suse/rc-local.service b/units/suse/rc-local.service
index d4ff92f599..0b9e1d0f9b 100644
--- a/units/suse/rc-local.service
+++ b/units/suse/rc-local.service
@@ -5,6 +5,8 @@
# 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/init.d/boot.local is executable.
[Unit]
Description=/etc/init.d/boot.local Compatibility
ConditionFileIsExecutable=/etc/init.d/boot.local