mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 11:55:23 +03:00
man: document which condition tests follow symlinks
ConditionPathExists and ConditionFileIsExecutable follow symlinks. ConditionPathIsDirectory does not follow symlinks. (XXX: is this actually the desired behavior?)
This commit is contained in:
parent
cbe8269481
commit
418112a296
@ -679,7 +679,7 @@
|
|||||||
a file existence condition can be
|
a file existence condition can be
|
||||||
checked before a unit is started. If
|
checked before a unit is started. If
|
||||||
the specified absolute path name does
|
the specified absolute path name does
|
||||||
not exist startup of a unit will not
|
not exist, startup of a unit will not
|
||||||
actually happen, however the unit is
|
actually happen, however the unit is
|
||||||
still useful for ordering purposes in
|
still useful for ordering purposes in
|
||||||
this case. The condition is checked at
|
this case. The condition is checked at
|
||||||
@ -689,23 +689,22 @@
|
|||||||
<varname>ConditionPathExists=</varname>
|
<varname>ConditionPathExists=</varname>
|
||||||
is prefixed with an exclamation mark
|
is prefixed with an exclamation mark
|
||||||
(!), the test is negated, and the unit
|
(!), the test is negated, and the unit
|
||||||
only started if the path does not
|
is only started if the path does not
|
||||||
exist. <varname>ConditionPathExistsGlob=</varname>
|
exist. The test follows symlinks.
|
||||||
work in a similar way, but checks for
|
<varname>ConditionPathExistsGlob=</varname>
|
||||||
the existance of at least one file or
|
works in a similar way, but checks for
|
||||||
|
the existence of at least one file or
|
||||||
directory matching the specified
|
directory matching the specified
|
||||||
globbing
|
globbing pattern.
|
||||||
pattern. <varname>ConditionPathIsDirectory=</varname>
|
<varname>ConditionPathIsDirectory=</varname>
|
||||||
is similar to
|
is similar to <varname>ConditionPathExists=</varname>
|
||||||
<varname>ConditionPathExists=</varname>
|
but verifies whether a certain path exists and
|
||||||
but verifies whether a certain path
|
is a directory. It does not follow symlinks.
|
||||||
exists and is a
|
<varname>ConditionFileIsExecutable=</varname>
|
||||||
directory. <varname>ConditionFileIsExecutable=</varname>
|
is similar to <varname>ConditionPathExists=</varname>
|
||||||
is similar to
|
but verifies whether a certain path exists,
|
||||||
<varname>ConditionPathExists=</varname>
|
is a regular file and marked executable.
|
||||||
but verifies whether a certain path
|
It follows symlinks.
|
||||||
exists, is a regular file and marked
|
|
||||||
executable.
|
|
||||||
<varname>ConditionDirectoryNotEmpty=</varname>
|
<varname>ConditionDirectoryNotEmpty=</varname>
|
||||||
is similar to
|
is similar to
|
||||||
<varname>ConditionPathExists=</varname>
|
<varname>ConditionPathExists=</varname>
|
||||||
|
Loading…
Reference in New Issue
Block a user