summaryrefslogtreecommitdiff
path: root/units/fedora
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-12 04:25:02 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-12 04:25:02 +0200
commit82e487c56d0947796793b6fd2836264328defe9f (patch)
tree2dfd5d979d064c7bc116cfca28ea1e1df65eac70 /units/fedora
parent3611581ebdabbe3a1d6a9b5310a0b59792279d7d (diff)
unit: introduce ConditionFileIsExecutable= and use it where we check for a binary we'll spawn
Diffstat (limited to 'units/fedora')
-rw-r--r--units/fedora/halt-local.service2
-rw-r--r--units/fedora/rc-local.service2
2 files changed, 2 insertions, 2 deletions
diff --git a/units/fedora/halt-local.service b/units/fedora/halt-local.service
index 79f8f12b7d..a9f6feb320 100644
--- a/units/fedora/halt-local.service
+++ b/units/fedora/halt-local.service
@@ -7,7 +7,7 @@
[Unit]
Description=/sbin/halt.local Compatibility
-ConditionPathExists=/sbin/halt.local
+ConditionFileIsExecutable=/sbin/halt.local
DefaultDependencies=no
After=shutdown.target
Before=final.target
diff --git a/units/fedora/rc-local.service b/units/fedora/rc-local.service
index 8c0b200494..f5f940f7ee 100644
--- a/units/fedora/rc-local.service
+++ b/units/fedora/rc-local.service
@@ -7,7 +7,7 @@
[Unit]
Description=/etc/rc.local Compatibility
-ConditionPathExists=/etc/rc.d/rc.local
+ConditionFileIsExecutable=/etc/rc.d/rc.local
[Service]
Type=forking