From 82e487c56d0947796793b6fd2836264328defe9f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Jul 2011 04:25:02 +0200 Subject: unit: introduce ConditionFileIsExecutable= and use it where we check for a binary we'll spawn --- units/fedora/halt-local.service | 2 +- units/fedora/rc-local.service | 2 +- units/suse/halt-local.service | 2 +- units/suse/rc-local.service | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'units') 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 diff --git a/units/suse/halt-local.service b/units/suse/halt-local.service index 68cacc6658..796012c0c4 100644 --- a/units/suse/halt-local.service +++ b/units/suse/halt-local.service @@ -7,7 +7,7 @@ [Unit] Description=/etc/init.d/halt.local Compatibility -ConditionPathExists=/etc/init.d/halt.local +ConditionFileIsExecutable=/etc/init.d/halt.local DefaultDependencies=no After=shutdown.target Before=final.target diff --git a/units/suse/rc-local.service b/units/suse/rc-local.service index 38884c5cd3..fe4c00716e 100644 --- a/units/suse/rc-local.service +++ b/units/suse/rc-local.service @@ -7,7 +7,7 @@ [Unit] Description=/etc/init.d/boot.local Compatibility -ConditionPathExists=/etc/init.d/boot.local +ConditionFileIsExecutable=/etc/init.d/boot.local [Service] Type=oneshot -- cgit v1.2.3-54-g00ecf